185 const MK_STRN path_hdl = path.c_str();
197 MkErrorC_Check(config, errVal);
205 const MK_STRN path_hdl = path.c_str();
207 MkErrorC_Check(config, errVal);
216 MkErrorC_Check(config, errVal);
224 const MK_STRN path_hdl = path.c_str();
226 MkErrorC_Check(config, errVal);
235 MkErrorC_Check(config, errVal);
243 const MK_STRN path_hdl = path.c_str();
245 MkErrorC_Check(config, errVal);
254 MkErrorC_Check(config, errVal);
262 const MK_STRN path_hdl = path.c_str();
264 MkErrorC_Check(config, errVal);
273 MkErrorC_Check(config, errVal);
281 const MK_STRN path_hdl = path.c_str();
283 MkErrorC_Check(config, errVal);
315 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
317 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
324 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
326 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
333 MkErrorC_Check(config, errVal);
339 const MK_STRN filename_hdl = filename.c_str();
341 MkErrorC_Check(config, errVal);
348 MkErrorC_Check(config, errVal);
354 const MK_STRN str_hdl = str.c_str();
356 MkErrorC_Check(config, errVal);
363 MkErrorC_Check(config, errVal);
369 const MK_STRN filename_hdl = filename.c_str();
371 MkErrorC_Check(config, errVal);
381 MkErrorC_Check(cfg, errVal);
415 const MK_STRN include_dir_hdl = include_dir.c_str();
424 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
426 MkErrorC_Check(cfg, errVal);
434 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
436 MkErrorC_Check(cfg, errVal);
456 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
458 MkErrorC_Check(cfg, errVal);
466 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
468 MkErrorC_Check(cfg, errVal);
487 inline MK_OBJ LcConfigC::CTOR () {
490 if (__retVal__L == NULL) {
493 return (
MK_OBJ)__retVal__L;
500 if (__retVal__L == NULL) {
503 return LcConfigC::LcConfigC_ObjCreate(
MK_RT_CALL __retVal__L);
Struct to represent the data from the LcConfigC … → C-API: liblcconfig::LcConfigS
Struct to represent the data from the LcSettingC … → C-API: liblcconfig::LcSettingS
LC_CFGN getCFGN() const
(const) return the LibMsgqueObject from current LcConfigC instance
LC_CFG getCFG() const
return the LibMsgqueObject from current LcConfigC instance
static LcConfigC * LcConfigC_ObjNew(MK_RT_ARGS LC_CFG hdl)
return LcConfigC from LibMsgqueObject
static LcConfigC * Instances()
C++: [static] LcConfigC* LcConfigC::Instances() → C-API get head-instance from linked-list of Lc...
LcConfigC * Prev()
C++: LcConfigC* cfg.Prev() → C-API get previous instance from linked-list of LcConfigS type
static LcConfigC * GetNull()
C++: [static] LcConfigC* LcConfigC::GetNull() → C-API Null-Slot - return a LcConfigC typed NULL ...
LcConfigC * Next()
C++: LcConfigC* cfg.Next() → C-API get next instance from linked-list of LcConfigS type
static LcConfigC * HandleResolve(MK_HDL netHdl)
C++: [static] LcConfigC* LcConfigC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static LC_CFG LcConfigPrev(LC_CFG const cfg)
get previous instance from linked-list of LcConfigS type
static LC_CFG LcConfigGetNull(void)
Null-Slot - return a LcConfigC typed NULL instance …
static LC_CFG LcConfigNext(LC_CFG const cfg)
get next instance from linked-list of LcConfigS type
#define LcConfigInstances()
#define LcConfigHandleResolve(...)
LcErrorTypeE ErrorType() const
C++: LcErrorTypeE config.ErrorType() → C-API This function, which is implemented as a macro,...
static enum LcErrorTypeE LcConfigErrorType(LC_CFGN config)
This function, which is implemented as a macro, returns the type of error that occurred during the la...
LcConfigOptionsEF GetOptions() const
C++: LcConfigOptionsEF config.GetOptions() → C-API These functions get and set the options for ...
MK_I16 GetTabWidth() const
C++: MK_I16 config.GetTabWidth() → C-API These functions, which are implemented as macros,...
MK_STRN GetIncludeDir() const
C++: MK_STRN config.GetIncludeDir() → C-API ConfigSetIncludeDir specifies the include directory...
MK_I16 GetFloatPrecision() const
C++: MK_I16 config.GetFloatPrecision() → C-API Since v1.6 These functions get and set the numbe...
MK_BOOL GetOption(LcConfigOptionsEF option) const
C++: MK_BOOL config.GetOption(LcConfigOptionsEF option) → C-API Since v1.7 These functions get ...
LcConfigFormatE GetDefaultFormat() const
C++: LcConfigFormatE config.GetDefaultFormat() → C-API These functions, which are implemented a...
static MK_STRN LcConfigGetIncludeDir(LC_CFGN config)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
static enum LcConfigOptionsEF LcConfigGetOptions(LC_CFGN config)
These functions get and set the options for the configuration config …
static enum LcConfigFormatE LcConfigGetDefaultFormat(LC_CFGN config)
These functions, which are implemented as macros, get and set the default external format for setting...
static MK_I16 LcConfigGetFloatPrecision(LC_CFGN config)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
static MK_I16 LcConfigGetTabWidth(LC_CFGN config)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
static MK_BOOL LcConfigGetOption(LC_CFGN config, enum LcConfigOptionsEF option)
Since v1.7 These functions get and set the given option of the configuration config …
MK_STRN LookupString(MK_STRN path) const
C++: MK_STRN config.LookupString(MK_STRN path) → C-API These functions look up the value of the...
LcSettingC * Lookup(MK_STRN path) const
C++: LcSettingC* config.Lookup(MK_STRN path) → C-API This function locates the setting in the c...
MK_BOOL LookupBool(MK_STRN path) const
C++: MK_BOOL config.LookupBool(MK_STRN path) → C-API These functions look up the value of the s...
MK_I32 LookupInt(MK_STRN path) const
C++: MK_I32 config.LookupInt(MK_STRN path) → C-API These functions look up the value of the set...
MK_I64 LookupInt64(MK_STRN path) const
C++: MK_I64 config.LookupInt64(MK_STRN path) → C-API These functions look up the value of the s...
MK_DBL LookupFloat(MK_STRN path) const
C++: MK_DBL config.LookupFloat(MK_STRN path) → C-API These functions look up the value of the s...
static enum MkErrorE LcConfigLookupInt(LC_CFGN config, MK_STRN path, MK_I32 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupInt64(LC_CFGN config, MK_STRN path, MK_I64 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupBool(LC_CFGN config, MK_STRN path, MK_BOOL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupFloat(LC_CFGN config, MK_STRN path, MK_DBL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupString(LC_CFGN config, MK_STRN path, MK_STRN *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
void ReadString(MK_STRN str)
C++: config.ReadString(MK_STRN str) → C-API This function reads and parses a configuration from...
MK_STRN WriteString() const
C++: MK_STRN cfg.WriteString() → C-API read the entire configuration cfg into the string val_ou...
void ReadFile(MK_STRN filename)
C++: config.ReadFile(MK_STRN filename) → C-API This function reads and parses a configuration f...
LcSettingC * RootSetting() const
C++: LcSettingC* config.RootSetting() → C-API This function, which is implemented as a macro,...
void Log(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: cfg.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION...
void WriteFile(MK_STRN filename)
C++: config.WriteFile(MK_STRN filename) → C-API This function writes the configuration config t...
void Clear()
C++: config.Clear() → C-API Since v1.7 This function clears the configuration config …
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
#define LcConfigWriteString(...)
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …
static enum MkErrorE LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
static enum MkErrorE LcConfigReadString(LC_CFG config, MK_STRN str)
This function reads and parses a configuration from the string str into the configuration object conf...
void SetIncludeDir(MK_STRN include_dir)
C++: config.SetIncludeDir(MK_STRN include_dir) → C-API ConfigSetIncludeDir specifies the includ...
void SetIncludeFunc(LcConfigIncludeIF *fConfigIncludeData=NULL)
C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) → C-API ...
void SetSettingDeleteFunc(LcSettingDeleteIF *fSettingDeleteData=NULL)
C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) → C-...
void SetDefaultFormat(LcConfigFormatE format)
C++: config.SetDefaultFormat(LcConfigFormatE format) → C-API These functions,...
void SetOptions(LcConfigOptionsEF options)
C++: config.SetOptions(LcConfigOptionsEF options) → C-API These functions get and set the optio...
void SetTabWidth(MK_I16 width)
C++: config.SetTabWidth(MK_I16 width) → C-API These functions, which are implemented as macros,...
void SetOption(LcConfigOptionsEF option, MK_BOOL flag)
C++: config.SetOption(LcConfigOptionsEF option, MK_BOOL flag) → C-API Since v1....
void SetFloatPrecision(MK_I16 digits)
C++: config.SetFloatPrecision(MK_I16 digits) → C-API Since v1.6 These functions get and set the...
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...
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 …
#define LcConfigSetSettingDeleteFunc(...)
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …
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...
#define LcConfigSetIncludeFunc(...)
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...
static void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
static LcConfigC * Create()
C++: [constructor,static] LcConfigC* LcConfigC::Create() → C-API create a LcConfigC instance …
static LC_CFG LcConfigCreate(MK_TYP type, config_t *nat)
create a LcConfigC instance …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
LcConfigFormatE
set the format of a LcSettingC …
static LcSettingC * LcSettingC_ObjNew(MK_RT_ARGS LC_CFS hdl)
return LcSettingC from LibMsgqueObject
MK_OBJN getOBJN__null_allow() const
struct MkObjectS * MK_OBJ
static MK_I32 MkRuntimeDebugGet(void)
namespace for the CcLcConfig "C++"-API
void(* LcSettingDeleteSCB)(MK_I32 hdl)
static callback fired just before deleting a LcSettingC …
void(* LcConfigIncludeSCB)(std::string incDir, std::string path, MkBufferListC &ret)
static callback fired if a @include "FILE-PATTERN" is found in the config-file …
static enum MkErrorE Call(LcConfigIncludeCallF_ARGS)
static MK_CBP Create(MK_RT mkrt, LcConfigIncludeSCB const callback, LcConfigC *self=NULL)
static void Free(LcConfigIncludeFreeF_ARGS)
interface fired if a @include "FILE-PATTERN" is found in the config-file …
static void Free(LcSettingDeleteFreeF_ARGS)
static enum MkErrorE Call(LcSettingDeleteCallF_ARGS)
static MK_CBP Create(MK_RT mkrt, LcSettingDeleteSCB const callback, LcConfigC *self=NULL)
interface fired just before deleting a LcSettingC …
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …