theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_ATL_API

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

+ Collaboration diagram for LcSettingC_Misc_ATL_API:

Functions

static OT_ProcRet atllcconfig_LcSettingC_AddIfNotExists (LcSettingC_ARGS)
  Atl: LcSettingC [LcSettingC::AddIfNotExists $setting name:string cfgtype:LcConfigTypeE] C-API
addon - add name with type only if not exists in the setting
 
static OT_ProcRet atllcconfig_LcSettingC_Parent (LcSettingC_ARGS)
  Atl: LcSettingC [LcSettingC::Parent $setting] C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
static OT_ProcRet atllcconfig_LcSettingC_Exists (LcSettingC_ARGS)
  Atl: bool [LcSettingC::Exists $setting name:string] C-API
addon - return true if name exists in the setting otherwise false
 
static OT_ProcRet atllcconfig_LcSettingC_Index (LcSettingC_ARGS)
  Atl: int32 [LcSettingC::Index $setting] C-API
This function returns the index of the given setting within its parent setting …
 
static OT_ProcRet atllcconfig_LcSettingC_Length (LcSettingC_ARGS)
  Atl: int32 [LcSettingC::Length $setting] C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atllcconfig_LcSettingC_Log (LcSettingC_ARGS)
 
static OT_ProcRet atllcconfig_LcSettingC_Name (LcSettingC_ARGS)
  Atl: string [LcSettingC::Name $setting] C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
static OT_ProcRet atllcconfig_LcSettingC_Remove (LcSettingC_ARGS)
  Atl: LcSettingC::Remove $parent name:string C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
static OT_ProcRet atllcconfig_LcSettingC_RemoveElem (LcSettingC_ARGS)
  Atl: LcSettingC::RemoveElem $parent idx:int32 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 …
 
static OT_ProcRet atllcconfig_LcSettingC_SourceFile (LcSettingC_ARGS)
  Atl: string [LcSettingC::SourceFile $setting] 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 …
 
static OT_ProcRet atllcconfig_LcSettingC_SourceLine (LcSettingC_ARGS)
  Atl: int32 [LcSettingC::SourceLine $setting] 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 …
 
static OT_ProcRet atllcconfig_LcSettingC_Type (LcSettingC_ARGS)
  Atl: LcConfigTypeE [LcSettingC::Type $setting] C-API
This function returns the type of the given setting
 

Detailed Description

LcSettingC - various functions to perform misc operations …

Function Documentation

◆ atllcconfig_LcSettingC_AddIfNotExists()

static OT_ProcRet atllcconfig_LcSettingC_AddIfNotExists ( LcSettingC_ARGS )
static

Atl: LcSettingC [LcSettingC::AddIfNotExists $setting name:string cfgtype:LcConfigTypeE] C-API
addon - add name with type only if not exists in the setting

Definition at line 725 of file LcSettingC_atl.c.

725 {
728 MK_STRN name = 0;
730 enum LcConfigTypeE cfgtype = 0;
733 LC_CFS retVal = LcSettingAddIfNotExists (hdl, name, cfgtype);
734 OT_retObj_SET_CFS(retVal);
735 goto end;
736 error:
738 end:
740}
#define OT_SETUP_hdl
#define AddIfNotExists_doc
#define OT_retObj_SET_CFS(nat)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
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 …
const MK_STRB * MK_STRN
Struct to represent the data from the LcSettingC …

◆ atllcconfig_LcSettingC_Exists()

static OT_ProcRet atllcconfig_LcSettingC_Exists ( LcSettingC_ARGS )
static

Atl: bool [LcSettingC::Exists $setting name:string] C-API
addon - return true if name exists in the setting otherwise false

Definition at line 763 of file LcSettingC_atl.c.

763 {
766 MK_STRN name = 0;
770 goto end;
771 error:
773 end:
775}
#define Exists_doc
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_ONEARG(d)
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …

◆ atllcconfig_LcSettingC_Index()

static OT_ProcRet atllcconfig_LcSettingC_Index ( LcSettingC_ARGS )
static

Atl: int32 [LcSettingC::Index $setting] C-API
This function returns the index of the given setting within its parent setting …

Definition at line 778 of file LcSettingC_atl.c.

778 {
783 goto end;
784 error:
786 end:
788}
#define Index_doc
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_I32(nat)
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …

◆ atllcconfig_LcSettingC_Length()

static OT_ProcRet atllcconfig_LcSettingC_Length ( LcSettingC_ARGS )
static

Atl: int32 [LcSettingC::Length $setting] 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 791 of file LcSettingC_atl.c.

791 {
796 goto end;
797 error:
799 end:
801}
#define Length_doc
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...

◆ atllcconfig_LcSettingC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atllcconfig_LcSettingC_Log ( LcSettingC_ARGS )
static

Definition at line 805 of file LcSettingC_atl.c.

#define OT_ERROR_LNG_RETURN

◆ atllcconfig_LcSettingC_Name()

static OT_ProcRet atllcconfig_LcSettingC_Name ( LcSettingC_ARGS )
static

Atl: string [LcSettingC::Name $setting] C-API
This function returns the name of the given setting, or NULL if the setting has no name …

Definition at line 808 of file LcSettingC_atl.c.

808 {
813 goto end;
814 error:
816 end:
818}
#define Name_doc
#define OT_retObj_SET_STR(nat)
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …

◆ atllcconfig_LcSettingC_Parent()

static OT_ProcRet atllcconfig_LcSettingC_Parent ( LcSettingC_ARGS )
static

Atl: LcSettingC [LcSettingC::Parent $setting] C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …

Definition at line 743 of file LcSettingC_atl.c.

743 {
747 LC_CFS retVal = LcSettingParent (hdl);
748 if (retVal == NULL) {
749 OT_ERROR_SOFT_CONSTRUCTOR(LcSettingC);
750 goto error;
751 }
752 OT_retObj_SET_CFS(retVal);
753 goto end;
754 error:
756 end:
758}
#define Parent_doc
#define OT_ERROR_SOFT_CONSTRUCTOR(class)
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...

◆ atllcconfig_LcSettingC_Remove()

static OT_ProcRet atllcconfig_LcSettingC_Remove ( LcSettingC_ARGS )
static

Atl: LcSettingC::Remove $parent name:string C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

Definition at line 821 of file LcSettingC_atl.c.

821 {
824 MK_STRN name = 0;
827 MkErrorC_Check(hdl,LcSettingRemove (hdl, name));
829 goto end;
830 error:
832 end:
834}
#define Remove_doc
#define OT_retObj_SET_None
#define MkErrorC_Check(mng, PROC)
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...

◆ atllcconfig_LcSettingC_RemoveElem()

static OT_ProcRet atllcconfig_LcSettingC_RemoveElem ( LcSettingC_ARGS )
static

Atl: LcSettingC::RemoveElem $parent idx:int32 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 837 of file LcSettingC_atl.c.

837 {
840 MK_I32 idx = 0;
843 MkErrorC_Check(hdl,LcSettingRemoveElem (hdl, idx));
845 goto end;
846 error:
848 end:
850}
#define RemoveElem_doc
#define OT_CHECK_NI4(val)
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,...
signed int MK_I32

◆ atllcconfig_LcSettingC_SourceFile()

static OT_ProcRet atllcconfig_LcSettingC_SourceFile ( LcSettingC_ARGS )
static

Atl: string [LcSettingC::SourceFile $setting] 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 853 of file LcSettingC_atl.c.

853 {
858 goto end;
859 error:
861 end:
863}
#define SourceFile_doc
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...

◆ atllcconfig_LcSettingC_SourceLine()

static OT_ProcRet atllcconfig_LcSettingC_SourceLine ( LcSettingC_ARGS )
static

Atl: int32 [LcSettingC::SourceLine $setting] 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 866 of file LcSettingC_atl.c.

866 {
871 goto end;
872 error:
874 end:
876}
#define SourceLine_doc
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...

◆ atllcconfig_LcSettingC_Type()

static OT_ProcRet atllcconfig_LcSettingC_Type ( LcSettingC_ARGS )
static

Atl: LcConfigTypeE [LcSettingC::Type $setting] C-API
This function returns the type of the given setting

Definition at line 879 of file LcSettingC_atl.c.

879 {
884 goto end;
885 error:
887 end:
889}
#define Type_doc
#define OT_NEW_Lc_enum_OBJ(typ, val)
#define OT_retObj_SET(val)
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …