theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - 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 (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::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::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 (LcSettingDeleteSCB fSettingDeleteData=NULL)
  C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the __parser__(callback-name) for the setting-delete
 
void cclcconfig::LcConfigC::SetSettingDeleteFunc (LcSettingDeleteIF *fSettingDeleteData=NULL)
  C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) C-API
set the __parser__(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 428 of file LcConfigC_inline_cc.hh.

428 {
429 MK_UNUSED auto config = getCFG(MK_NULL_NO);
430 MkRtSetup_X(config);
431 LcConfigSetDefaultFormat(config, format);
432 }
LC_CFG getCFG(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current LcConfigC instance
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_NULL_NO
#define MK_UNUSED
#define MkRtSetup_X(x)

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

435 {
436 MK_UNUSED auto config = getCFG(MK_NULL_NO);
437 MkRtSetup_X(config);
438 LcConfigSetFloatPrecision(config, digits);
439 }
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 449 of file LcConfigC_inline_cc.hh.

449 {
450 MK_UNUSED auto config = getCFG(MK_NULL_NO);
451 MkRtSetup_X(config);
452 const MK_STRN include_dir_hdl = include_dir.c_str();
453 LcConfigSetIncludeDir(config, include_dir_hdl);
454 }
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 442 of file LcConfigC_inline_cc.hh.

442 {
443 MK_UNUSED auto config = getCFG(MK_NULL_NO);
444 MkRtSetup_X(config);
445 LcConfigSetIncludeDir(config, include_dir);
446 }

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

468 {
469 MK_UNUSED auto cfg = getCFG(MK_NULL_NO);
470 MkRtSetup_X(cfg);
471 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
472 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
473 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
474 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
475 MkErrorC_Check(cfg, errVal);
476 }
#define LcConfigSetIncludeFunc(...)
#define MK_RT_CALL
static enum MkErrorE Call(LcConfigIncludeCallF_ARGS)
Definition LcCall_cc.cc:37
static MK_CBP Create(MK_RT const mkrt, LcConfigIncludeSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:43
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 457 of file LcConfigC_inline_cc.hh.

457 {
458 MK_UNUSED auto cfg = getCFG(MK_NULL_NO);
459 MkRtSetup_X(cfg);
460 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
461 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
462 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
463 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
464 MkErrorC_Check(cfg, errVal);
465 }

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

479 {
480 MK_UNUSED auto config = getCFG(MK_NULL_NO);
481 MkRtSetup_X(config);
482 LcConfigSetOption(config, option, flag);
483 }
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 486 of file LcConfigC_inline_cc.hh.

486 {
487 MK_UNUSED auto config = getCFG(MK_NULL_NO);
488 MkRtSetup_X(config);
489 LcConfigSetOptions(config, options);
490 }
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 __parser__(callback-name) for the setting-delete

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

Definition at line 504 of file LcConfigC_inline_cc.hh.

504 {
505 MK_UNUSED auto cfg = getCFG(MK_NULL_NO);
506 MkRtSetup_X(cfg);
507 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
508 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
509 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
510 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
511 MkErrorC_Check(cfg, errVal);
512 }
#define LcConfigSetSettingDeleteFunc(...)
static void Free(LcSettingDeleteFreeF_ARGS)
Definition LcCall_cc.cc:77
static MK_CBP Create(MK_RT const mkrt, LcSettingDeleteSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:80
static enum MkErrorE Call(LcSettingDeleteCallF_ARGS)
Definition LcCall_cc.cc:86

◆ SetSettingDeleteFunc() [2/2]

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

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

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

Definition at line 493 of file LcConfigC_inline_cc.hh.

493 {
494 MK_UNUSED auto cfg = getCFG(MK_NULL_NO);
495 MkRtSetup_X(cfg);
496 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
497 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
498 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
499 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
500 MkErrorC_Check(cfg, errVal);
501 }

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

515 {
516 MK_UNUSED auto config = getCFG(MK_NULL_NO);
517 MkRtSetup_X(config);
518 LcConfigSetTabWidth(config, width);
519 }
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...