theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Misc_CC_API

LcConfigC - various functions to perform misc operations … More...

+ Collaboration diagram for LcConfigC_Misc_CC_API:

Functions

LcSettingCcclcconfig::LcConfigC::RootSetting () const
  C++: LcSettingC* config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
void cclcconfig::LcConfigC::Clear ()
  C++: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
void cclcconfig::LcConfigC::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(), MK_I32 lvl = 0) C-API
log the config
 
void cclcconfig::LcConfigC::Log (const MkObjectC &fmtobj, 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(), MK_I32 lvl = 0) C-API
log the config
 
void cclcconfig::LcConfigC::ReadFile (MK_STRN filename)
  C++: config.ReadFile(MK_STRN filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
void cclcconfig::LcConfigC::ReadFile (const std::string &filename)
  C++: config.ReadFile(MK_STRN filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
void cclcconfig::LcConfigC::ReadString (MK_STRN str)
  C++: config.ReadString(MK_STRN str) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
void cclcconfig::LcConfigC::ReadString (const std::string &str)
  C++: config.ReadString(MK_STRN str) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
void cclcconfig::LcConfigC::WriteFile (MK_STRN filename)
  C++: config.WriteFile(MK_STRN filename) C-API
This function writes the configuration config to the file named filename
 
void cclcconfig::LcConfigC::WriteFile (const std::string &filename)
  C++: config.WriteFile(MK_STRN filename) C-API
This function writes the configuration config to the file named filename
 
MK_STRN cclcconfig::LcConfigC::WriteString () const
  C++: MK_STRN cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 

Detailed Description

LcConfigC - various functions to perform misc operations …

Function Documentation

◆ Clear()

void cclcconfig::LcConfigC::Clear ( )
inline

C++: config.Clear() C-API
Since v1.7 This function clears the configuration config

Definition at line 306 of file LcConfigC_inline_cc.hh.

306 {
307 MK_UNUSED auto config = getCFG();
308 LcConfigClear(config);
309 }
LC_CFG getCFG() const
return the LibMsgqueObject from current LcConfigC instance
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
#define MK_UNUSED

◆ Log() [1/2]

void cclcconfig::LcConfigC::Log ( const MkObjectC & fmtobj,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: cfg.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the config

Definition at line 321 of file LcConfigC_inline_cc.hh.

321 {
322 MK_UNUSED auto cfg = getCFGN();
323 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
324 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
325 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
326 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
327 }
LC_CFGN getCFGN() const
(const) return the LibMsgqueObject from current LcConfigC instance
#define LcConfigLog(...)
MK_OBJN getOBJN() const
const struct MkObjectS * MK_OBJN
static MK_I32 MkRuntimeDebugGet(void)

◆ Log() [2/2]

void cclcconfig::LcConfigC::Log ( const MkObjectC * fmtobj = NULL,
MK_DBG debug = 0,
MK_STRN callfunc = __builtin_FUNCTION(),
MK_I32 lvl = 0 ) const
inline

C++: cfg.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) C-API
log the config

Definition at line 312 of file LcConfigC_inline_cc.hh.

312 {
313 MK_UNUSED auto cfg = getCFGN();
314 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
315 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
316 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
317 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
318 }
MK_OBJN getOBJN__null_allow() const

◆ ReadFile() [1/2]

void cclcconfig::LcConfigC::ReadFile ( const std::string & filename)
inline

C++: config.ReadFile(MK_STRN filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config

Definition at line 337 of file LcConfigC_inline_cc.hh.

337 {
338 MK_UNUSED auto config = getCFG();
339 const MK_STRN filename_hdl = filename.c_str();
340 enum MkErrorE errVal = LcConfigReadFile(config, filename_hdl);
341 MkErrorC_Check(config, errVal);
342 }
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...
const MK_STRB * MK_STRN

◆ ReadFile() [2/2]

void cclcconfig::LcConfigC::ReadFile ( MK_STRN filename)
inline

C++: config.ReadFile(MK_STRN filename) C-API
This function reads and parses a configuration from the file named filename into the configuration object config

Definition at line 330 of file LcConfigC_inline_cc.hh.

330 {
331 MK_UNUSED auto config = getCFG();
332 enum MkErrorE errVal = LcConfigReadFile(config, filename);
333 MkErrorC_Check(config, errVal);
334 }

◆ ReadString() [1/2]

void cclcconfig::LcConfigC::ReadString ( const std::string & str)
inline

C++: config.ReadString(MK_STRN str) C-API
This function reads and parses a configuration from the string str into the configuration object config

Definition at line 352 of file LcConfigC_inline_cc.hh.

352 {
353 MK_UNUSED auto config = getCFG();
354 const MK_STRN str_hdl = str.c_str();
355 enum MkErrorE errVal = LcConfigReadString(config, str_hdl);
356 MkErrorC_Check(config, errVal);
357 }
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...

◆ ReadString() [2/2]

void cclcconfig::LcConfigC::ReadString ( MK_STRN str)
inline

C++: config.ReadString(MK_STRN str) C-API
This function reads and parses a configuration from the string str into the configuration object config

Definition at line 345 of file LcConfigC_inline_cc.hh.

345 {
346 MK_UNUSED auto config = getCFG();
347 enum MkErrorE errVal = LcConfigReadString(config, str);
348 MkErrorC_Check(config, errVal);
349 }

◆ RootSetting()

LcSettingC * cclcconfig::LcConfigC::RootSetting ( ) const
inline

C++: LcSettingC* config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config

Definition at line 297 of file LcConfigC_inline_cc.hh.

297 {
298 MK_UNUSED auto config = getCFGN();
299 LC_CFS __retVal__L = LcConfigRootSetting(config);
300 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
301 }
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
static LcSettingC * LcSettingC_ObjNew(MK_RT_ARGS LC_CFS hdl)
return LcSettingC from LibMsgqueObject
struct LcSettingS * LC_CFS
class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MK_RT_CALL

◆ WriteFile() [1/2]

void cclcconfig::LcConfigC::WriteFile ( const std::string & filename)
inline

C++: config.WriteFile(MK_STRN filename) C-API
This function writes the configuration config to the file named filename

Definition at line 367 of file LcConfigC_inline_cc.hh.

367 {
368 MK_UNUSED auto config = getCFG();
369 const MK_STRN filename_hdl = filename.c_str();
370 enum MkErrorE errVal = LcConfigWriteFile(config, filename_hdl);
371 MkErrorC_Check(config, errVal);
372 }
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ WriteFile() [2/2]

void cclcconfig::LcConfigC::WriteFile ( MK_STRN filename)
inline

C++: config.WriteFile(MK_STRN filename) C-API
This function writes the configuration config to the file named filename

Definition at line 360 of file LcConfigC_inline_cc.hh.

360 {
361 MK_UNUSED auto config = getCFG();
362 enum MkErrorE errVal = LcConfigWriteFile(config, filename);
363 MkErrorC_Check(config, errVal);
364 }

◆ WriteString()

MK_STRN cclcconfig::LcConfigC::WriteString ( ) const
inline

C++: MK_STRN cfg.WriteString() C-API
read the entire configuration cfg into the string val_out

Definition at line 377 of file LcConfigC_inline_cc.hh.

377 {
378 MK_UNUSED auto cfg = getCFGN();
379 MK_STRN val_out;
380 enum MkErrorE errVal = LcConfigWriteString(cfg, &val_out);
381 MkErrorC_Check(cfg, errVal);
382 return val_out;
383 }
#define LcConfigWriteString(...)