theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_PY_API

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

+ Collaboration diagram for LcSettingC_Misc_PY_API:

Functions

static OT_ProcRet pylcconfig_LcSettingC_AddIfNotExists (LcSettingC_ARGS)
  Python: LcSettingC setting.AddIfNotExists(name:string, cfgtype:LcConfigTypeE) C-API
addon - add name with type only if not exists in the setting
 
static OT_ProcRet pylcconfig_LcSettingC_Parent (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_Exists (LcSettingC_ARGS)
  Python: bool setting.Exists(name:string) C-API
addon - return true if name exists in the setting otherwise false
 
static OT_ProcRet pylcconfig_LcSettingC_Index (LcSettingC_ARGS)
  Python: int32 setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
static OT_ProcRet pylcconfig_LcSettingC_Length (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_Log (LcSettingC_ARGS)
 
static OT_ProcRet pylcconfig_LcSettingC_Name (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_Remove (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_RemoveElem (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_SourceFile (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_SourceLine (LcSettingC_ARGS)
  Python: 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 pylcconfig_LcSettingC_Type (LcSettingC_ARGS)
  Python: 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

◆ pylcconfig_LcSettingC_AddIfNotExists()

static OT_ProcRet pylcconfig_LcSettingC_AddIfNotExists ( LcSettingC_ARGS )
static

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

Definition at line 726 of file LcSettingC_py.c.

726 {
729 MK_STRN name = 0;
731 enum LcConfigTypeE cfgtype = 0;
734 LC_CFS retVal = LcSettingAddIfNotExists (hdl, name, cfgtype);
735 OT_retObj_SET_CFS(retVal);
736 goto end;
737 error:
739 end:
741}
#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_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
#define OT_CHECK_ENUM(ename, val)
Struct to represent the data from the LcSettingC …

◆ pylcconfig_LcSettingC_Exists()

static OT_ProcRet pylcconfig_LcSettingC_Exists ( LcSettingC_ARGS )
static

Python: bool setting.Exists(name:string) C-API
addon - return true if name exists in the setting otherwise false

Definition at line 764 of file LcSettingC_py.c.

764 {
767 MK_STRN name = 0;
771 goto end;
772 error:
774 end:
776}
#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 …

◆ pylcconfig_LcSettingC_Index()

static OT_ProcRet pylcconfig_LcSettingC_Index ( LcSettingC_ARGS )
static

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

Definition at line 779 of file LcSettingC_py.c.

779 {
784 goto end;
785 error:
787 end:
789}
#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 …

◆ pylcconfig_LcSettingC_Length()

static OT_ProcRet pylcconfig_LcSettingC_Length ( LcSettingC_ARGS )
static

Python: 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 792 of file LcSettingC_py.c.

792 {
797 goto end;
798 error:
800 end:
802}
#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...

◆ pylcconfig_LcSettingC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet pylcconfig_LcSettingC_Log ( LcSettingC_ARGS )
static

Definition at line 806 of file LcSettingC_py.c.

#define OT_ERROR_LNG_RETURN

◆ pylcconfig_LcSettingC_Name()

static OT_ProcRet pylcconfig_LcSettingC_Name ( LcSettingC_ARGS )
static

Python: 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 809 of file LcSettingC_py.c.

809 {
814 goto end;
815 error:
817 end:
819}
#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 …

◆ pylcconfig_LcSettingC_Parent()

static OT_ProcRet pylcconfig_LcSettingC_Parent ( LcSettingC_ARGS )
static

Python: 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 744 of file LcSettingC_py.c.

744 {
748 LC_CFS retVal = LcSettingParent (hdl);
749 if (retVal == NULL) {
750 OT_ERROR_SOFT_CONSTRUCTOR(LcSettingC);
751 goto error;
752 }
753 OT_retObj_SET_CFS(retVal);
754 goto end;
755 error:
757 end:
759}
#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...

◆ pylcconfig_LcSettingC_Remove()

static OT_ProcRet pylcconfig_LcSettingC_Remove ( LcSettingC_ARGS )
static

Python: 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 822 of file LcSettingC_py.c.

822 {
825 MK_STRN name = 0;
828 MkErrorC_Check(hdl,LcSettingRemove (hdl, name));
830 goto end;
831 error:
833 end:
835}
#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,...

◆ pylcconfig_LcSettingC_RemoveElem()

static OT_ProcRet pylcconfig_LcSettingC_RemoveElem ( LcSettingC_ARGS )
static

Python: 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 838 of file LcSettingC_py.c.

838 {
841 MK_I32 idx = 0;
844 MkErrorC_Check(hdl,LcSettingRemoveElem (hdl, idx));
846 goto end;
847 error:
849 end:
851}
#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

◆ pylcconfig_LcSettingC_SourceFile()

static OT_ProcRet pylcconfig_LcSettingC_SourceFile ( LcSettingC_ARGS )
static

Python: 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 854 of file LcSettingC_py.c.

854 {
859 goto end;
860 error:
862 end:
864}
#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,...

◆ pylcconfig_LcSettingC_SourceLine()

static OT_ProcRet pylcconfig_LcSettingC_SourceLine ( LcSettingC_ARGS )
static

Python: 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 867 of file LcSettingC_py.c.

867 {
872 goto end;
873 error:
875 end:
877}
#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...

◆ pylcconfig_LcSettingC_Type()

static OT_ProcRet pylcconfig_LcSettingC_Type ( LcSettingC_ARGS )
static

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

Definition at line 880 of file LcSettingC_py.c.

880 {
885 goto end;
886 error:
888 end:
890}
#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 …