theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_CC_API

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

+ Collaboration diagram for LcSettingC_Misc_CC_API:

Functions

LcSettingCcclcconfig::LcSettingC::AddIfNotExists (MK_STRN name, LcConfigTypeE cfgtype)
  C++: LcSettingC* setting.AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting
 
LcSettingCcclcconfig::LcSettingC::AddIfNotExists (const std::string &name, LcConfigTypeE cfgtype)
  C++: LcSettingC* setting.AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting
 
LcSettingCcclcconfig::LcSettingC::Parent () const
  C++: LcSettingC* setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
MK_BOOL cclcconfig::LcSettingC::Exists (MK_STRN name)
  C++: MK_BOOL setting.Exists(MK_STRN name) C-API
addon - return true if name exists in the setting otherwise false
 
MK_BOOL cclcconfig::LcSettingC::Exists (const std::string &name)
  C++: MK_BOOL setting.Exists(MK_STRN name) C-API
addon - return true if name exists in the setting otherwise false
 
MK_I32 cclcconfig::LcSettingC::Index () const
  C++: MK_I32 setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
MK_I32 cclcconfig::LcSettingC::Length () const
  C++: MK_I32 setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
MK_STRN cclcconfig::LcSettingC::Name () const
  C++: MK_STRN setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
void cclcconfig::LcSettingC::Remove (MK_STRN name)
  C++: parent.Remove(MK_STRN name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
void cclcconfig::LcSettingC::Remove (const std::string &name)
  C++: parent.Remove(MK_STRN name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
void cclcconfig::LcSettingC::RemoveElem (MK_I32 idx)
  C++: parent.RemoveElem(MK_I32 idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …
 
MK_STRN cclcconfig::LcSettingC::SourceFile () const
  C++: MK_STRN setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …
 
MK_I32 cclcconfig::LcSettingC::SourceLine () const
  C++: MK_I32 setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …
 
LcConfigTypeE cclcconfig::LcSettingC::Type () const
  C++: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting
 

Detailed Description

LcSettingC - various functions to perform misc operations …

Function Documentation

◆ AddIfNotExists() [1/2]

LcSettingC * cclcconfig::LcSettingC::AddIfNotExists ( const std::string & name,
LcConfigTypeE cfgtype )
inline

C++: LcSettingC* setting.AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting

Definition at line 425 of file LcSettingC_inline_cc.hh.

425 {
426 MK_UNUSED auto setting = getCFS();
427 const MK_STRN name_hdl = name.c_str();
428 LC_CFS __retVal__L = LcSettingAddIfNotExists(setting, name_hdl, cfgtype);
429 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
430 }
LC_CFS getCFS() const
return the LibMsgqueObject from current LcSettingC instance
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) …
static LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
#define MK_UNUSED
const MK_STRB * MK_STRN
#define MK_RT_CALL

◆ AddIfNotExists() [2/2]

LcSettingC * cclcconfig::LcSettingC::AddIfNotExists ( MK_STRN name,
LcConfigTypeE cfgtype )
inline

C++: LcSettingC* setting.AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting

Definition at line 418 of file LcSettingC_inline_cc.hh.

418 {
419 MK_UNUSED auto setting = getCFS();
420 LC_CFS __retVal__L = LcSettingAddIfNotExists(setting, name, cfgtype);
421 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
422 }

◆ Exists() [1/2]

MK_BOOL cclcconfig::LcSettingC::Exists ( const std::string & name)
inline

C++: MK_BOOL setting.Exists(MK_STRN name) C-API
addon - return true if name exists in the setting otherwise false

Definition at line 452 of file LcSettingC_inline_cc.hh.

452 {
453 MK_UNUSED auto setting = getCFS();
454 const MK_STRN name_hdl = name.c_str();
455 MK_BOOL __retVal__L = LcSettingExists(setting, name_hdl);
456 return __retVal__L;
457 }
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …

◆ Exists() [2/2]

MK_BOOL cclcconfig::LcSettingC::Exists ( MK_STRN name)
inline

C++: MK_BOOL setting.Exists(MK_STRN name) C-API
addon - return true if name exists in the setting otherwise false

Definition at line 445 of file LcSettingC_inline_cc.hh.

445 {
446 MK_UNUSED auto setting = getCFS();
447 MK_BOOL __retVal__L = LcSettingExists(setting, name);
448 return __retVal__L;
449 }

◆ Index()

MK_I32 cclcconfig::LcSettingC::Index ( ) const
inline

C++: MK_I32 setting.Index() C-API
This function returns the index of the given setting within its parent setting …

Definition at line 460 of file LcSettingC_inline_cc.hh.

460 {
461 MK_UNUSED auto setting = getCFSN();
462 MK_I32 __retVal__L = LcSettingIndex(setting);
463 return __retVal__L;
464 }
LC_CFSN getCFSN() const
(const) return the LibMsgqueObject from current LcSettingC instance
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
signed int MK_I32

◆ Length()

MK_I32 cclcconfig::LcSettingC::Length ( ) const
inline

C++: MK_I32 setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …

Definition at line 467 of file LcSettingC_inline_cc.hh.

467 {
468 MK_UNUSED auto setting = getCFSN();
469 MK_I32 __retVal__L = LcSettingLength(setting);
470 return __retVal__L;
471 }
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...

◆ Name()

MK_STRN cclcconfig::LcSettingC::Name ( ) const
inline

C++: MK_STRN setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …

Definition at line 478 of file LcSettingC_inline_cc.hh.

478 {
479 MK_UNUSED auto setting = getCFSN();
480 MK_STRN __retVal__L = LcSettingName(setting);
481 return __retVal__L;
482 }
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …

◆ Parent()

LcSettingC * cclcconfig::LcSettingC::Parent ( ) const
inline

C++: LcSettingC* setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …

Definition at line 433 of file LcSettingC_inline_cc.hh.

433 {
434 MK_UNUSED auto setting = getCFSN();
435 LC_CFS __retVal__L = LcSettingParent(setting);
436 if (__retVal__L == NULL) {
437 throw MkInitSoftError("LcSettingC::Parent");
438 }
439 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
440 }
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...

◆ Remove() [1/2]

void cclcconfig::LcSettingC::Remove ( const std::string & name)
inline

C++: parent.Remove(MK_STRN name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

Definition at line 492 of file LcSettingC_inline_cc.hh.

492 {
493 MK_UNUSED auto parent = getCFS();
494 const MK_STRN name_hdl = name.c_str();
495 enum MkErrorE errVal = LcSettingRemove(parent, name_hdl);
496 MkErrorC_Check(parent, errVal);
497 }
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...

◆ Remove() [2/2]

void cclcconfig::LcSettingC::Remove ( MK_STRN name)
inline

C++: parent.Remove(MK_STRN name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

Definition at line 485 of file LcSettingC_inline_cc.hh.

485 {
486 MK_UNUSED auto parent = getCFS();
487 enum MkErrorE errVal = LcSettingRemove(parent, name);
488 MkErrorC_Check(parent, errVal);
489 }

◆ RemoveElem()

void cclcconfig::LcSettingC::RemoveElem ( MK_I32 idx)
inline

C++: parent.RemoveElem(MK_I32 idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …

Definition at line 500 of file LcSettingC_inline_cc.hh.

500 {
501 MK_UNUSED auto parent = getCFS();
502 enum MkErrorE errVal = LcSettingRemoveElem(parent, idx);
503 MkErrorC_Check(parent, errVal);
504 }
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...

◆ SourceFile()

MK_STRN cclcconfig::LcSettingC::SourceFile ( ) const
inline

C++: MK_STRN setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …

Definition at line 507 of file LcSettingC_inline_cc.hh.

507 {
508 MK_UNUSED auto setting = getCFSN();
509 MK_STRN __retVal__L = LcSettingSourceFile(setting);
510 return __retVal__L;
511 }
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...

◆ SourceLine()

MK_I32 cclcconfig::LcSettingC::SourceLine ( ) const
inline

C++: MK_I32 setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …

Definition at line 514 of file LcSettingC_inline_cc.hh.

514 {
515 MK_UNUSED auto setting = getCFSN();
516 MK_I32 __retVal__L = LcSettingSourceLine(setting);
517 return __retVal__L;
518 }
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...

◆ Type()

LcConfigTypeE cclcconfig::LcSettingC::Type ( ) const
inline

C++: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting

Definition at line 521 of file LcSettingC_inline_cc.hh.

521 {
522 MK_UNUSED auto setting = getCFSN();
523 enum LcConfigTypeE __retVal__L = LcSettingType(setting);
524 return __retVal__L;
525 }
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …