theConfig 10.0
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 395 of file LcConfigC_inline_cc.hh.

395 {
396 MK_UNUSED auto config = getCFG();
397 LcConfigSetDefaultFormat(config, format);
398 }
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 401 of file LcConfigC_inline_cc.hh.

401 {
402 MK_UNUSED auto config = getCFG();
403 LcConfigSetFloatPrecision(config, digits);
404 }
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 413 of file LcConfigC_inline_cc.hh.

413 {
414 MK_UNUSED auto config = getCFG();
415 const MK_STRN include_dir_hdl = include_dir.c_str();
416 LcConfigSetIncludeDir(config, include_dir_hdl);
417 }
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 407 of file LcConfigC_inline_cc.hh.

407 {
408 MK_UNUSED auto config = getCFG();
409 LcConfigSetIncludeDir(config, include_dir);
410 }

◆ 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 420 of file LcConfigC_inline_cc.hh.

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

◆ 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 430 of file LcConfigC_inline_cc.hh.

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

◆ 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 440 of file LcConfigC_inline_cc.hh.

440 {
441 MK_UNUSED auto config = getCFG();
442 LcConfigSetOption(config, option, flag);
443 }
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 446 of file LcConfigC_inline_cc.hh.

446 {
447 MK_UNUSED auto config = getCFG();
448 LcConfigSetOptions(config, options);
449 }
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 452 of file LcConfigC_inline_cc.hh.

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

◆ 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 462 of file LcConfigC_inline_cc.hh.

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

◆ 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 472 of file LcConfigC_inline_cc.hh.

472 {
473 MK_UNUSED auto config = getCFG();
474 LcConfigSetTabWidth(config, width);
475 }
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...