theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LcConfigC_Set_CC_API

LcConfigC - various functions to set config-dataMore...

+ Collaboration diagram for LcConfigC_Set_CC_API:

Functions

void cclcconfig::LcConfigC::SetDefaultFormat (LcConfigFormatE format)
  C++: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
void cclcconfig::LcConfigC::SetFloatPrecision (MK_I16 digits)
  C++: config.SetFloatPrecision(MK_I16 digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
void cclcconfig::LcConfigC::SetIncludeDir (MK_STRN include_dir)
  C++: config.SetIncludeDir(MK_STRN include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
void cclcconfig::LcConfigC::SetIncludeDir (const std::string &include_dir)
  C++: config.SetIncludeDir(MK_STRN include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
void cclcconfig::LcConfigC::SetIncludeFunc (LcConfigIncludeIF *fConfigIncludeData=NULL)
  C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) C-API
set the __parser__(callback-name) for the include-config-file
 
void cclcconfig::LcConfigC::SetIncludeFunc (LcConfigIncludeSCB fConfigIncludeData=NULL)
  C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) C-API
set the __parser__(callback-name) for the include-config-file
 
void cclcconfig::LcConfigC::SetOption (LcConfigOptionsEF option, MK_BOOL flag)
  C++: config.SetOption(LcConfigOptionsEF option, MK_BOOL flag) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
void cclcconfig::LcConfigC::SetOptions (LcConfigOptionsEF options)
  C++: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config
 
void cclcconfig::LcConfigC::SetSettingDeleteFunc (LcSettingDeleteIF *fSettingDeleteData=NULL)
  C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the callback-name for the setting-delete
 
void cclcconfig::LcConfigC::SetSettingDeleteFunc (LcSettingDeleteSCB fSettingDeleteData=NULL)
  C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the callback-name for the setting-delete
 
void cclcconfig::LcConfigC::SetTabWidth (MK_I16 width)
  C++: config.SetTabWidth(MK_I16 width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 

Detailed Description

LcConfigC - various functions to set config-data

Function Documentation

◆ SetDefaultFormat()

void cclcconfig::LcConfigC::SetDefaultFormat ( LcConfigFormatE format)
inline

C++: config.SetDefaultFormat(LcConfigFormatE format) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config

Definition at line 398 of file LcConfigC_inline_cc.hh.

398 {
399 MK_UNUSED auto config = getCFG();
400 LcConfigSetDefaultFormat(config, format);
401 }
LC_CFG getCFG() const
return the LibMsgqueObject from current LcConfigC instance
static void LcConfigSetDefaultFormat(LC_CFG config, enum LcConfigFormatE format)
These functions, which are implemented as macros, get and set the default external format for setting...
#define MK_UNUSED

◆ SetFloatPrecision()

void cclcconfig::LcConfigC::SetFloatPrecision ( MK_I16 digits)
inline

C++: config.SetFloatPrecision(MK_I16 digits) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …

Definition at line 404 of file LcConfigC_inline_cc.hh.

404 {
405 MK_UNUSED auto config = getCFG();
406 LcConfigSetFloatPrecision(config, digits);
407 }
static void LcConfigSetFloatPrecision(LC_CFG config, MK_I16 digits)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...

◆ SetIncludeDir() [1/2]

void cclcconfig::LcConfigC::SetIncludeDir ( const std::string & include_dir)
inline

C++: config.SetIncludeDir(MK_STRN include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config

Definition at line 416 of file LcConfigC_inline_cc.hh.

416 {
417 MK_UNUSED auto config = getCFG();
418 const MK_STRN include_dir_hdl = include_dir.c_str();
419 LcConfigSetIncludeDir(config, include_dir_hdl);
420 }
static void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
const MK_STRB * MK_STRN

◆ SetIncludeDir() [2/2]

void cclcconfig::LcConfigC::SetIncludeDir ( MK_STRN include_dir)
inline

C++: config.SetIncludeDir(MK_STRN include_dir) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config

Definition at line 410 of file LcConfigC_inline_cc.hh.

410 {
411 MK_UNUSED auto config = getCFG();
412 LcConfigSetIncludeDir(config, include_dir);
413 }

◆ SetIncludeFunc() [1/2]

void cclcconfig::LcConfigC::SetIncludeFunc ( LcConfigIncludeIF * fConfigIncludeData = NULL)
inline

C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) C-API
set the __parser__(callback-name) for the include-config-file

namespace cclcconfig {
struct LcConfigIncludeIF {
virtual void LcConfigInclude (std::string incDir, std::string path, MkBufferListC &ret) = 0;
};
}

Definition at line 423 of file LcConfigC_inline_cc.hh.

423 {
424 MK_UNUSED auto cfg = getCFG();
425 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
426 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
427 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
428 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
429 MkErrorC_Check(cfg, errVal);
430 }
#define LcConfigSetIncludeFunc(...)
#define MK_RT_CALL
static enum MkErrorE Call(LcConfigIncludeCallF_ARGS)
Definition LcCall_cc.cc:37
static MK_CBP Create(MK_RT mkrt, LcConfigIncludeSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:45
static void Free(LcConfigIncludeFreeF_ARGS)
Definition LcCall_cc.cc:28

◆ SetIncludeFunc() [2/2]

void cclcconfig::LcConfigC::SetIncludeFunc ( LcConfigIncludeSCB fConfigIncludeData = NULL)
inline

C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) C-API
set the __parser__(callback-name) for the include-config-file

namespace cclcconfig {
typedef void (*LcConfigIncludeSCB) (
std::string incDir, std::string path, MkBufferListC &ret
);
}

Definition at line 433 of file LcConfigC_inline_cc.hh.

433 {
434 MK_UNUSED auto cfg = getCFG();
435 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
436 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
437 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
438 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
439 MkErrorC_Check(cfg, errVal);
440 }

◆ SetOption()

void cclcconfig::LcConfigC::SetOption ( LcConfigOptionsEF option,
MK_BOOL flag )
inline

C++: config.SetOption(LcConfigOptionsEF option, MK_BOOL flag) C-API
Since v1.7 These functions get and set the given option of the configuration config

Definition at line 443 of file LcConfigC_inline_cc.hh.

443 {
444 MK_UNUSED auto config = getCFG();
445 LcConfigSetOption(config, option, flag);
446 }
static void LcConfigSetOption(LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag)
Since v1.7 These functions get and set the given option of the configuration config …

◆ SetOptions()

void cclcconfig::LcConfigC::SetOptions ( LcConfigOptionsEF options)
inline

C++: config.SetOptions(LcConfigOptionsEF options) C-API
These functions get and set the options for the configuration config

Definition at line 449 of file LcConfigC_inline_cc.hh.

449 {
450 MK_UNUSED auto config = getCFG();
451 LcConfigSetOptions(config, options);
452 }
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …

◆ SetSettingDeleteFunc() [1/2]

void cclcconfig::LcConfigC::SetSettingDeleteFunc ( LcSettingDeleteIF * fSettingDeleteData = NULL)
inline

C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the callback-name for the setting-delete

namespace cclcconfig {
struct LcSettingDeleteIF {
virtual void LcSettingDelete (MK_I32) = 0;
};
}

Definition at line 455 of file LcConfigC_inline_cc.hh.

455 {
456 MK_UNUSED auto cfg = getCFG();
457 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
458 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
459 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
460 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
461 MkErrorC_Check(cfg, errVal);
462 }
#define LcConfigSetSettingDeleteFunc(...)
static void Free(LcSettingDeleteFreeF_ARGS)
Definition LcCall_cc.cc:77
static enum MkErrorE Call(LcSettingDeleteCallF_ARGS)
Definition LcCall_cc.cc:86
static MK_CBP Create(MK_RT mkrt, LcSettingDeleteSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:82

◆ SetSettingDeleteFunc() [2/2]

void cclcconfig::LcConfigC::SetSettingDeleteFunc ( LcSettingDeleteSCB fSettingDeleteData = NULL)
inline

C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the callback-name for the setting-delete

namespace cclcconfig {
typedef void (*LcSettingDeleteSCB) (MK_I32 hdl);
}

Definition at line 465 of file LcConfigC_inline_cc.hh.

465 {
466 MK_UNUSED auto cfg = getCFG();
467 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
468 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
469 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
470 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
471 MkErrorC_Check(cfg, errVal);
472 }

◆ SetTabWidth()

void cclcconfig::LcConfigC::SetTabWidth ( MK_I16 width)
inline

C++: config.SetTabWidth(MK_I16 width) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config

Definition at line 475 of file LcConfigC_inline_cc.hh.

475 {
476 MK_UNUSED auto config = getCFG();
477 LcConfigSetTabWidth(config, width);
478 }
static void LcConfigSetTabWidth(LC_CFG config, MK_I16 width)
These functions, which are implemented as macros, get and set the tab width for the configuration con...