theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_TCL_API

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

+ Collaboration diagram for LcSettingC_Misc_TCL_API:

Functions

static OT_ProcRet tcllcconfig_LcSettingC_AddIfNotExists (LcSettingC_ARGS)
  Tcl: LcSettingC [$setting AddIfNotExists name:string cfgtype:LcConfigTypeE] C-API
addon - add name with type only if not exists in the setting
 
static OT_ProcRet tcllcconfig_LcSettingC_Parent (LcSettingC_ARGS)
  Tcl: LcSettingC [$setting Parent] C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
static OT_ProcRet tcllcconfig_LcSettingC_Exists (LcSettingC_ARGS)
  Tcl: bool [$setting Exists name:string] C-API
addon - return true if name exists in the setting otherwise false
 
static OT_ProcRet tcllcconfig_LcSettingC_Index (LcSettingC_ARGS)
  Tcl: int32 [$setting Index] C-API
This function returns the index of the given setting within its parent setting …
 
static OT_ProcRet tcllcconfig_LcSettingC_Length (LcSettingC_ARGS)
  Tcl: int32 [$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_DEPRECATED static MK_UNUSED OT_ProcRet tcllcconfig_LcSettingC_Log (LcSettingC_ARGS)
 
static OT_ProcRet tcllcconfig_LcSettingC_Name (LcSettingC_ARGS)
  Tcl: string [$setting Name] C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
static OT_ProcRet tcllcconfig_LcSettingC_Remove (LcSettingC_ARGS)
  Tcl: $parent Remove 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 tcllcconfig_LcSettingC_RemoveElem (LcSettingC_ARGS)
  Tcl: $parent RemoveElem 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 tcllcconfig_LcSettingC_SourceFile (LcSettingC_ARGS)
  Tcl: string [$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 …
 
static OT_ProcRet tcllcconfig_LcSettingC_SourceLine (LcSettingC_ARGS)
  Tcl: int32 [$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 …
 
static OT_ProcRet tcllcconfig_LcSettingC_Type (LcSettingC_ARGS)
  Tcl: 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

◆ tcllcconfig_LcSettingC_AddIfNotExists()

static OT_ProcRet tcllcconfig_LcSettingC_AddIfNotExists ( LcSettingC_ARGS )
static

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

Definition at line 746 of file LcSettingC_tcl.c.

746 {
749 MK_STRN name = 0;
751 enum LcConfigTypeE cfgtype = 0;
754 LC_CFS retVal = LcSettingAddIfNotExists (hdl, name, cfgtype);
755 OT_retObj_SET_CFS(retVal);
756 goto end;
757 error:
759 end:
761}
#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 …

◆ tcllcconfig_LcSettingC_Exists()

static OT_ProcRet tcllcconfig_LcSettingC_Exists ( LcSettingC_ARGS )
static

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

Definition at line 784 of file LcSettingC_tcl.c.

784 {
787 MK_STRN name = 0;
791 goto end;
792 error:
794 end:
796}
#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 …

◆ tcllcconfig_LcSettingC_Index()

static OT_ProcRet tcllcconfig_LcSettingC_Index ( LcSettingC_ARGS )
static

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

Definition at line 799 of file LcSettingC_tcl.c.

799 {
804 goto end;
805 error:
807 end:
809}
#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 …

◆ tcllcconfig_LcSettingC_Length()

static OT_ProcRet tcllcconfig_LcSettingC_Length ( LcSettingC_ARGS )
static

Tcl: int32 [$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 812 of file LcSettingC_tcl.c.

812 {
817 goto end;
818 error:
820 end:
822}
#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...

◆ tcllcconfig_LcSettingC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tcllcconfig_LcSettingC_Log ( LcSettingC_ARGS )
static

Definition at line 826 of file LcSettingC_tcl.c.

#define OT_ERROR_LNG_RETURN

◆ tcllcconfig_LcSettingC_Name()

static OT_ProcRet tcllcconfig_LcSettingC_Name ( LcSettingC_ARGS )
static

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

Definition at line 829 of file LcSettingC_tcl.c.

829 {
834 goto end;
835 error:
837 end:
839}
#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 …

◆ tcllcconfig_LcSettingC_Parent()

static OT_ProcRet tcllcconfig_LcSettingC_Parent ( LcSettingC_ARGS )
static

Tcl: 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 764 of file LcSettingC_tcl.c.

764 {
768 LC_CFS retVal = LcSettingParent (hdl);
769 if (retVal == NULL) {
770 OT_ERROR_SOFT_CONSTRUCTOR(LcSettingC);
771 goto error;
772 }
773 OT_retObj_SET_CFS(retVal);
774 goto end;
775 error:
777 end:
779}
#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...

◆ tcllcconfig_LcSettingC_Remove()

static OT_ProcRet tcllcconfig_LcSettingC_Remove ( LcSettingC_ARGS )
static

Tcl: $parent Remove 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 842 of file LcSettingC_tcl.c.

842 {
845 MK_STRN name = 0;
848 MkErrorC_Check(hdl,LcSettingRemove (hdl, name));
850 goto end;
851 error:
853 end:
855}
#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,...

◆ tcllcconfig_LcSettingC_RemoveElem()

static OT_ProcRet tcllcconfig_LcSettingC_RemoveElem ( LcSettingC_ARGS )
static

Tcl: $parent RemoveElem 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 858 of file LcSettingC_tcl.c.

858 {
861 MK_I32 idx = 0;
864 MkErrorC_Check(hdl,LcSettingRemoveElem (hdl, idx));
866 goto end;
867 error:
869 end:
871}
#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

◆ tcllcconfig_LcSettingC_SourceFile()

static OT_ProcRet tcllcconfig_LcSettingC_SourceFile ( LcSettingC_ARGS )
static

Tcl: string [$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 874 of file LcSettingC_tcl.c.

874 {
879 goto end;
880 error:
882 end:
884}
#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,...

◆ tcllcconfig_LcSettingC_SourceLine()

static OT_ProcRet tcllcconfig_LcSettingC_SourceLine ( LcSettingC_ARGS )
static

Tcl: int32 [$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 887 of file LcSettingC_tcl.c.

887 {
892 goto end;
893 error:
895 end:
897}
#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...

◆ tcllcconfig_LcSettingC_Type()

static OT_ProcRet tcllcconfig_LcSettingC_Type ( LcSettingC_ARGS )
static

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

Definition at line 900 of file LcSettingC_tcl.c.

900 {
905 goto end;
906 error:
908 end:
910}
#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 …