theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_py.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for LcSettingC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "LcSettingC_py.c"
 
#define OT_CLASS   (&NS(LcSettingCR))
 
#define OT_CLASS_NAME   "LcSettingC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(LcSettingC)
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(LcSettingC)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(LcSettingC)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define LcSettingCTT   LC(LcConfigThreadState).LcSettingCTT
 
#define ClassInit
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define GetNull_doc   "LcSettingC LcSettingC.GetNull()"
 
#define HandleResolve_doc   "LcSettingC LcSettingC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "LcSettingC LcSettingC.Instances()"
 
#define Add_doc   "LcSettingC parent.Add(name:string, __type:LcConfigTypeE)"
 
#define AddIfNotExists_doc   "LcSettingC setting.AddIfNotExists(name:string, cfgtype:LcConfigTypeE)"
 
#define GetConfig_doc   "LcConfigC setting.GetConfig() (const)"
 
#define GetElem_doc   "LcSettingC setting.GetElem(idx:int32) (const)"
 
#define GetMember_doc   "LcSettingC setting.GetMember(name:string) (const)"
 
#define Lookup_doc   "LcSettingC setting.Lookup(path:string)"
 
#define LookupAll_doc   "MkBufferListC setting.LookupAll() (const)"
 
#define Next_doc   "LcSettingC cfs.Next()"
 
#define Parent_doc   "LcSettingC setting.Parent() (const)"
 
#define Prev_doc   "LcSettingC cfs.Prev()"
 
#define SetBoolElem_doc   "LcSettingC setting.SetBoolElem(idx:int32, value:int32)"
 
#define SetFloatElem_doc   "LcSettingC setting.SetFloatElem(idx:int32, value:double)"
 
#define SetInt64Elem_doc   "LcSettingC setting.SetInt64Elem(idx:int32, value:int64)"
 
#define SetIntElem_doc   "LcSettingC setting.SetIntElem(idx:int32, value:int32)"
 
#define SetStringElem_doc   "LcSettingC setting.SetStringElem(idx:int32, value:string)"
 
#define Exists_doc   "bool setting.Exists(name:string)"
 
#define GetBool_doc   "bool setting.GetBool() (const)"
 
#define GetBoolElem_doc   "bool setting.GetBoolElem(idx:int32) (const)"
 
#define GetFloat_doc   "double setting.GetFloat() (const)"
 
#define GetFloatElem_doc   "double setting.GetFloatElem(idx:int32) (const)"
 
#define GetFormat_doc   "LcConfigFormatE setting.GetFormat() (const)"
 
#define GetInt_doc   "int32 setting.GetInt() (const)"
 
#define GetInt64_doc   "int64 setting.GetInt64() (const)"
 
#define GetInt64Elem_doc   "int64 setting.GetInt64Elem(idx:int32) (const)"
 
#define GetIntElem_doc   "int32 setting.GetIntElem(idx:int32) (const)"
 
#define GetString_doc   "string setting.GetString() (const)"
 
#define GetStringElem_doc   "string setting.GetStringElem(idx:int32) (const)"
 
#define Index_doc   "int32 setting.Index() (const)"
 
#define IsAggregate_doc   "bool setting.IsAggregate() (const)"
 
#define IsArray_doc   "bool setting.IsArray() (const)"
 
#define IsGroup_doc   "bool setting.IsGroup() (const)"
 
#define IsList_doc   "bool setting.IsList() (const)"
 
#define IsNumber_doc   "bool setting.IsNumber() (const)"
 
#define IsRoot_doc   "bool setting.IsRoot() (const)"
 
#define IsScalar_doc   "bool setting.IsScalar() (const)"
 
#define Length_doc   "int32 setting.Length() (const)"
 
#define Name_doc   "string setting.Name() (const)"
 
#define Remove_doc   "parent.Remove(name:string)"
 
#define RemoveElem_doc   "parent.RemoveElem(idx:int32)"
 
#define SetBool_doc   "setting.SetBool(value:bool)"
 
#define SetFloat_doc   "setting.SetFloat(value:double)"
 
#define SetFormat_doc   "setting.SetFormat(format:LcConfigFormatE)"
 
#define SetInt_doc   "setting.SetInt(value:int32)"
 
#define SetInt64_doc   "setting.SetInt64(value:int64)"
 
#define SetString_doc   "setting.SetString(value:string)"
 
#define SourceFile_doc   "string setting.SourceFile() (const)"
 
#define SourceLine_doc   "int32 setting.SourceLine() (const)"
 
#define Type_doc   "LcConfigTypeE setting.Type() (const)"
 
#define LookupBool_doc   "bool setting.LookupBool(name:string) (const)"
 
#define LookupFloat_doc   "double setting.LookupFloat(name:string) (const)"
 
#define LookupInt_doc   "int32 setting.LookupInt(name:string) (const)"
 
#define LookupInt64_doc   "int64 setting.LookupInt64(name:string) (const)"
 
#define LookupString_doc   "string setting.LookupString(name:string) (const)"
 

Functions

static OT_OBJ_T pylcconfig_LcSettingC_CTOR (MK_RT mkrt, OT_CLS_T type, LC_CFS hdl)
 
static MK_PTR pylcconfig_LcSettingC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pylcconfig_LcSettingC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pylcconfig_LcSettingC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static OT_ProcRet pylcconfig_LcSettingC_HandleResolve (OtClass_ARGS)
  Python: [static] LcSettingC LcSettingC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a LcSettingC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pylcconfig_LcSettingC_HandleGet (LcSettingC_ARGS)
 
static OT_ProcRet pylcconfig_LcSettingC_Next (LcSettingC_ARGS)
  Python: LcSettingC cfs.Next() C-API
get next instance from linked-list of LcSettingS type
 
static OT_ProcRet pylcconfig_LcSettingC_Prev (LcSettingC_ARGS)
  Python: LcSettingC cfs.Prev() C-API
get previous instance from linked-list of LcSettingS type
 
static OT_ProcRet pylcconfig_LcSettingC_Instances (OtClass_ARGS)
  Python: [static] LcSettingC LcSettingC.Instances() C-API
get head-instance from linked-list of LcSettingS type …
 
static OT_ProcRet pylcconfig_LcSettingC_GetNull (OtClass_ARGS)
  Python: [static] LcSettingC LcSettingC.GetNull() C-API
Null-Slot - return a LcSettingC typed NULL instance …
 
static OT_ProcRet pylcconfig_LcSettingC_GetElem (LcSettingC_ARGS)
  Python: LcSettingC setting.GetElem(idx:int32) C-API
This function fetches the element at the given index index in the setting setting, which must be an array, list, or group …
 
static OT_ProcRet pylcconfig_LcSettingC_GetMember (LcSettingC_ARGS)
  Python: LcSettingC setting.GetMember(name:string) C-API
This function fetches the child setting named name from the group setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetBool (LcSettingC_ARGS)
  Python: bool setting.GetBool() C-API
These functions return the value of the given setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetBoolElem (LcSettingC_ARGS)
  Python: bool setting.GetBoolElem(idx:int32) C-API
These functions return the value at the specified index index in the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetFloat (LcSettingC_ARGS)
  Python: double setting.GetFloat() C-API
These functions return the value of the given setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetFloatElem (LcSettingC_ARGS)
  Python: double setting.GetFloatElem(idx:int32) C-API
These functions return the value at the specified index index in the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetFormat (LcSettingC_ARGS)
  Python: LcConfigFormatE setting.GetFormat() C-API
These functions get and set the external format for the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetInt (LcSettingC_ARGS)
  Python: int32 setting.GetInt() C-API
These functions return the value of the given setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetInt64 (LcSettingC_ARGS)
  Python: int64 setting.GetInt64() C-API
These functions return the value of the given setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetInt64Elem (LcSettingC_ARGS)
  Python: int64 setting.GetInt64Elem(idx:int32) C-API
These functions return the value at the specified index index in the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetIntElem (LcSettingC_ARGS)
  Python: int32 setting.GetIntElem(idx:int32) C-API
These functions return the value at the specified index index in the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetString (LcSettingC_ARGS)
  Python: string setting.GetString() C-API
These functions return the value of the given setting
 
static OT_ProcRet pylcconfig_LcSettingC_GetStringElem (LcSettingC_ARGS)
  Python: string setting.GetStringElem(idx:int32) C-API
These functions return the value at the specified index index in the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_IsAggregate (LcSettingC_ARGS)
  Python: bool setting.IsAggregate() C-API
These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 
static OT_ProcRet pylcconfig_LcSettingC_IsArray (LcSettingC_ARGS)
  Python: bool setting.IsArray() C-API
These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static OT_ProcRet pylcconfig_LcSettingC_IsGroup (LcSettingC_ARGS)
  Python: bool setting.IsGroup() C-API
These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static OT_ProcRet pylcconfig_LcSettingC_IsList (LcSettingC_ARGS)
  Python: bool setting.IsList() C-API
These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static OT_ProcRet pylcconfig_LcSettingC_IsNumber (LcSettingC_ARGS)
  Python: bool setting.IsNumber() C-API
These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 
static OT_ProcRet pylcconfig_LcSettingC_IsRoot (LcSettingC_ARGS)
  Python: bool setting.IsRoot() C-API
This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwise …
 
static OT_ProcRet pylcconfig_LcSettingC_IsScalar (LcSettingC_ARGS)
  Python: bool setting.IsScalar() C-API
These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 
static OT_ProcRet pylcconfig_LcSettingC_Lookup (LcSettingC_ARGS)
  Python: LcSettingC setting.Lookup(path:string) C-API
This function locates a setting by a path path relative to the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_LookupAll (LcSettingC_ARGS)
  Python: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC
 
static OT_ProcRet pylcconfig_LcSettingC_LookupBool (LcSettingC_ARGS)
  Python: bool setting.LookupBool(name:string) C-API
These functions look up the value of the child setting named name of the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_LookupFloat (LcSettingC_ARGS)
  Python: double setting.LookupFloat(name:string) C-API
These functions look up the value of the child setting named name of the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_LookupInt (LcSettingC_ARGS)
  Python: int32 setting.LookupInt(name:string) C-API
These functions look up the value of the child setting named name of the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_LookupInt64 (LcSettingC_ARGS)
  Python: int64 setting.LookupInt64(name:string) C-API
These functions look up the value of the child setting named name of the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_LookupString (LcSettingC_ARGS)
  Python: string setting.LookupString(name:string) C-API
These functions look up the value of the child setting named name of the setting setting
 
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
 
static OT_ProcRet pylcconfig_LcSettingC_SetBoolElem (LcSettingC_ARGS)
  Python: LcSettingC setting.SetBoolElem(idx:int32, value:int32) C-API
These functions set the value at the specified index index in the setting setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetFloatElem (LcSettingC_ARGS)
  Python: LcSettingC setting.SetFloatElem(idx:int32, value:double) C-API
These functions set the value at the specified index index in the setting setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetInt64Elem (LcSettingC_ARGS)
  Python: LcSettingC setting.SetInt64Elem(idx:int32, value:int64) C-API
These functions set the value at the specified index index in the setting setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetIntElem (LcSettingC_ARGS)
  Python: LcSettingC setting.SetIntElem(idx:int32, value:int32) C-API
These functions set the value at the specified index index in the setting setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetStringElem (LcSettingC_ARGS)
  Python: LcSettingC setting.SetStringElem(idx:int32, value:string) C-API
These functions set the value at the specified index index in the setting setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetBool (LcSettingC_ARGS)
  Python: setting.SetBool(value:bool) C-API
These functions set the value of the given setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetFloat (LcSettingC_ARGS)
  Python: setting.SetFloat(value:double) C-API
These functions set the value of the given setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetFormat (LcSettingC_ARGS)
  Python: setting.SetFormat(format:LcConfigFormatE) C-API
These functions get and set the external format for the setting setting
 
static OT_ProcRet pylcconfig_LcSettingC_SetInt (LcSettingC_ARGS)
  Python: setting.SetInt(value:int32) C-API
These functions set the value of the given setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetInt64 (LcSettingC_ARGS)
  Python: setting.SetInt64(value:int64) C-API
These functions set the value of the given setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_SetString (LcSettingC_ARGS)
  Python: setting.SetString(value:string) C-API
These functions set the value of the given setting to value
 
static OT_ProcRet pylcconfig_LcSettingC_Add (LcSettingC_ARGS)
  Python: [constructor] LcSettingC parent.Add(name:string, __type:LcConfigTypeE) C-API
This function adds a new child setting or element to the setting parent, which must be a group, array, or list …
 
static OT_ProcRet pylcconfig_LcSettingC_GetConfig (LcSettingC_ARGS)
  Python: LcConfigC setting.GetConfig() C-API
addon - return the LcConfigC from the LcSettingC
 
int pylcconfig_pLcSettingC_Init (MK_RT mkrt, PyObject *m)
 

Variables

static PyMethodDef LcSettingC_Methods []
 
OT_CLASS_TYPE_REF pylcconfig_LcSettingCR
 

Detailed Description

tag: nhi1-release-250425

Definition in file LcSettingC_py.c.

Macro Definition Documentation

◆ Add_doc

#define Add_doc   "LcSettingC parent.Add(name:string, __type:LcConfigTypeE)"

Definition at line 104 of file LcSettingC_py.c.

◆ AddIfNotExists_doc

#define AddIfNotExists_doc   "LcSettingC setting.AddIfNotExists(name:string, cfgtype:LcConfigTypeE)"

Definition at line 107 of file LcSettingC_py.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
\
/* protect against double call */ \
if (LcSettingCTT->selfCreate == NS(LcSettingC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
LcSettingCTT->selfCreate = NS(LcSettingC_selfCreate); \
LcSettingCTT->selfDelete = NS(LcSettingC_selfDelete); \
LcSettingCTT->selfUnlink = NS(LcSettingC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(LcSettingCR).tp_base = LcSettingC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "LcSettingC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
LcSettingC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define OT_CLASS
#define LcSettingCTT
#define LcSettingC_MK_NULL
#define NS(n)
#define LcSettingC_base
#define MK(n)
#define LcSettingSTT
instance-type as MkTypeS-class-type (cast from LcSettingST into MkTypeS) …
MK_OK
#define MK_RT_CALL
Struct to represent the data from the LcSettingC …

Definition at line 65 of file LcSettingC_py.c.

65#define ClassInit \
66 /* if not already done, initialize NEW META type */ \
67 if (LcSettingCTT == NULL) LcSettingCTT = LcSettingSTT; \
68 \
69 /* protect against double call */ \
70 if (LcSettingCTT->selfCreate == NS(LcSettingC_selfCreate)) return MK_OK; \
71 \
72 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
73 LcSettingCTT->selfCreate = NS(LcSettingC_selfCreate); \
74 LcSettingCTT->selfDelete = NS(LcSettingC_selfDelete); \
75 LcSettingCTT->selfUnlink = NS(LcSettingC_selfUnlink); \
76 \
77 if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
78 NS(LcSettingCR).tp_base = LcSettingC_base; \
79 OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
80 } \
81 OtErrorCheckLng(PyModule_AddObjectRef(m, "LcSettingC", (PyObject *)OT_CLASS)); \
82 \
83 /* define the "NULL" object */ \
84 LcSettingC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));

◆ Exists_doc

#define Exists_doc   "bool setting.Exists(name:string)"

Definition at line 123 of file LcSettingC_py.c.

◆ GetBool_doc

#define GetBool_doc   "bool setting.GetBool() (const)"

Definition at line 124 of file LcSettingC_py.c.

◆ GetBoolElem_doc

#define GetBoolElem_doc   "bool setting.GetBoolElem(idx:int32) (const)"

Definition at line 125 of file LcSettingC_py.c.

◆ GetConfig_doc

#define GetConfig_doc   "LcConfigC setting.GetConfig() (const)"

Definition at line 108 of file LcSettingC_py.c.

◆ GetElem_doc

#define GetElem_doc   "LcSettingC setting.GetElem(idx:int32) (const)"

Definition at line 109 of file LcSettingC_py.c.

◆ GetFloat_doc

#define GetFloat_doc   "double setting.GetFloat() (const)"

Definition at line 126 of file LcSettingC_py.c.

◆ GetFloatElem_doc

#define GetFloatElem_doc   "double setting.GetFloatElem(idx:int32) (const)"

Definition at line 127 of file LcSettingC_py.c.

◆ GetFormat_doc

#define GetFormat_doc   "LcConfigFormatE setting.GetFormat() (const)"

Definition at line 128 of file LcSettingC_py.c.

◆ GetInt64_doc

#define GetInt64_doc   "int64 setting.GetInt64() (const)"

Definition at line 130 of file LcSettingC_py.c.

◆ GetInt64Elem_doc

#define GetInt64Elem_doc   "int64 setting.GetInt64Elem(idx:int32) (const)"

Definition at line 131 of file LcSettingC_py.c.

◆ GetInt_doc

#define GetInt_doc   "int32 setting.GetInt() (const)"

Definition at line 129 of file LcSettingC_py.c.

◆ GetIntElem_doc

#define GetIntElem_doc   "int32 setting.GetIntElem(idx:int32) (const)"

Definition at line 132 of file LcSettingC_py.c.

◆ GetMember_doc

#define GetMember_doc   "LcSettingC setting.GetMember(name:string) (const)"

Definition at line 110 of file LcSettingC_py.c.

◆ GetNull_doc

#define GetNull_doc   "LcSettingC LcSettingC.GetNull()"

doc definition

Definition at line 99 of file LcSettingC_py.c.

◆ GetString_doc

#define GetString_doc   "string setting.GetString() (const)"

Definition at line 133 of file LcSettingC_py.c.

◆ GetStringElem_doc

#define GetStringElem_doc   "string setting.GetStringElem(idx:int32) (const)"

Definition at line 134 of file LcSettingC_py.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "LcSettingC LcSettingC.HandleResolve(netHdl:MK_HDL)"

Definition at line 100 of file LcSettingC_py.c.

◆ Index_doc

#define Index_doc   "int32 setting.Index() (const)"

Definition at line 136 of file LcSettingC_py.c.

◆ Instances_doc

#define Instances_doc   "LcSettingC LcSettingC.Instances()"

Definition at line 101 of file LcSettingC_py.c.

◆ IsAggregate_doc

#define IsAggregate_doc   "bool setting.IsAggregate() (const)"

Definition at line 137 of file LcSettingC_py.c.

◆ IsArray_doc

#define IsArray_doc   "bool setting.IsArray() (const)"

Definition at line 138 of file LcSettingC_py.c.

◆ IsGroup_doc

#define IsGroup_doc   "bool setting.IsGroup() (const)"

Definition at line 139 of file LcSettingC_py.c.

◆ IsList_doc

#define IsList_doc   "bool setting.IsList() (const)"

Definition at line 140 of file LcSettingC_py.c.

◆ IsNumber_doc

#define IsNumber_doc   "bool setting.IsNumber() (const)"

Definition at line 141 of file LcSettingC_py.c.

◆ IsRoot_doc

#define IsRoot_doc   "bool setting.IsRoot() (const)"

Definition at line 142 of file LcSettingC_py.c.

◆ IsScalar_doc

#define IsScalar_doc   "bool setting.IsScalar() (const)"

Definition at line 143 of file LcSettingC_py.c.

◆ LcSettingCTT

#define LcSettingCTT   LC(LcConfigThreadState).LcSettingCTT

Definition at line 40 of file LcSettingC_py.c.

◆ Length_doc

#define Length_doc   "int32 setting.Length() (const)"

Definition at line 144 of file LcSettingC_py.c.

◆ Lookup_doc

#define Lookup_doc   "LcSettingC setting.Lookup(path:string)"

Definition at line 111 of file LcSettingC_py.c.

◆ LookupAll_doc

#define LookupAll_doc   "MkBufferListC setting.LookupAll() (const)"

Definition at line 112 of file LcSettingC_py.c.

◆ LookupBool_doc

#define LookupBool_doc   "bool setting.LookupBool(name:string) (const)"

Definition at line 160 of file LcSettingC_py.c.

◆ LookupFloat_doc

#define LookupFloat_doc   "double setting.LookupFloat(name:string) (const)"

Definition at line 161 of file LcSettingC_py.c.

◆ LookupInt64_doc

#define LookupInt64_doc   "int64 setting.LookupInt64(name:string) (const)"

Definition at line 163 of file LcSettingC_py.c.

◆ LookupInt_doc

#define LookupInt_doc   "int32 setting.LookupInt(name:string) (const)"

Definition at line 162 of file LcSettingC_py.c.

◆ LookupString_doc

#define LookupString_doc   "string setting.LookupString(name:string) (const)"

Definition at line 164 of file LcSettingC_py.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 88 of file LcSettingC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "LcSettingC_py.c"

Definition at line 11 of file LcSettingC_py.c.

◆ Name_doc

#define Name_doc   "string setting.Name() (const)"

Definition at line 146 of file LcSettingC_py.c.

◆ Next_doc

#define Next_doc   "LcSettingC cfs.Next()"

Definition at line 113 of file LcSettingC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(LcSettingCR))

Definition at line 16 of file LcSettingC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "LcSettingC"

Definition at line 17 of file LcSettingC_py.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static LC_CFS LcCfs(MK_MNG mng)
cast a unknown-object into an LcSettingS pointer or NULL if not possible

Definition at line 19 of file LcSettingC_py.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( mng)
Value:
OT_retObj_SET(NS(LcSettingC_CTOR)(MK_RT_CALL (PyTypeObject*)class,mng))
#define OT_retObj_SET(val)

Definition at line 21 of file LcSettingC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(LcSettingC)

Definition at line 23 of file LcSettingC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(LcSettingC)

Definition at line 24 of file LcSettingC_py.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
struct LcSettingS * LC_CFS
class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
#define AllRtSetup_NULL
#define MK_RT_UNUSED

Definition at line 25 of file LcSettingC_py.c.

25#define OT_SETUP_hdl_constr MK_RT_UNUSED AllRtSetup_NULL; \
26 LC_CFS hdl = (LC_CFS) OT_CLASS;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(LcSettingC)

Definition at line 27 of file LcSettingC_py.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = LcSettingC##_TT;

Definition at line 28 of file LcSettingC_py.c.

28#define OT_SETUP_hdl_static MK_RT_UNUSED AllRtSetup_NULL; \
29 __attribute__((unused)) MK_TYP hdl = LcSettingC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 31 of file LcSettingC_py.c.

◆ Parent_doc

#define Parent_doc   "LcSettingC setting.Parent() (const)"

Definition at line 114 of file LcSettingC_py.c.

◆ Prev_doc

#define Prev_doc   "LcSettingC cfs.Prev()"

Definition at line 115 of file LcSettingC_py.c.

◆ Remove_doc

#define Remove_doc   "parent.Remove(name:string)"

Definition at line 147 of file LcSettingC_py.c.

◆ RemoveElem_doc

#define RemoveElem_doc   "parent.RemoveElem(idx:int32)"

Definition at line 148 of file LcSettingC_py.c.

◆ SetBool_doc

#define SetBool_doc   "setting.SetBool(value:bool)"

Definition at line 149 of file LcSettingC_py.c.

◆ SetBoolElem_doc

#define SetBoolElem_doc   "LcSettingC setting.SetBoolElem(idx:int32, value:int32)"

Definition at line 116 of file LcSettingC_py.c.

◆ SetFloat_doc

#define SetFloat_doc   "setting.SetFloat(value:double)"

Definition at line 150 of file LcSettingC_py.c.

◆ SetFloatElem_doc

#define SetFloatElem_doc   "LcSettingC setting.SetFloatElem(idx:int32, value:double)"

Definition at line 117 of file LcSettingC_py.c.

◆ SetFormat_doc

#define SetFormat_doc   "setting.SetFormat(format:LcConfigFormatE)"

Definition at line 151 of file LcSettingC_py.c.

◆ SetInt64_doc

#define SetInt64_doc   "setting.SetInt64(value:int64)"

Definition at line 153 of file LcSettingC_py.c.

◆ SetInt64Elem_doc

#define SetInt64Elem_doc   "LcSettingC setting.SetInt64Elem(idx:int32, value:int64)"

Definition at line 118 of file LcSettingC_py.c.

◆ SetInt_doc

#define SetInt_doc   "setting.SetInt(value:int32)"

Definition at line 152 of file LcSettingC_py.c.

◆ SetIntElem_doc

#define SetIntElem_doc   "LcSettingC setting.SetIntElem(idx:int32, value:int32)"

Definition at line 119 of file LcSettingC_py.c.

◆ SetString_doc

#define SetString_doc   "setting.SetString(value:string)"

Definition at line 154 of file LcSettingC_py.c.

◆ SetStringElem_doc

#define SetStringElem_doc   "LcSettingC setting.SetStringElem(idx:int32, value:string)"

Definition at line 120 of file LcSettingC_py.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 34 of file LcSettingC_py.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 35 of file LcSettingC_py.c.

◆ SourceFile_doc

#define SourceFile_doc   "string setting.SourceFile() (const)"

Definition at line 155 of file LcSettingC_py.c.

◆ SourceLine_doc

#define SourceLine_doc   "int32 setting.SourceLine() (const)"

Definition at line 156 of file LcSettingC_py.c.

◆ Type_doc

#define Type_doc   "LcConfigTypeE setting.Type() (const)"

Definition at line 157 of file LcSettingC_py.c.

Function Documentation

◆ pylcconfig_LcSettingC_CTOR()

static OT_OBJ_T pylcconfig_LcSettingC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
LC_CFS hdl )
inlinestatic

Definition at line 44 of file LcSettingC_py.c.

44 {
45 return MK(AtomCreate)(MK_RT_CALL type,LcSettingC_X2obj(hdl));
46}
#define LcSettingC_X2obj(x)

◆ pylcconfig_LcSettingC_selfCreate()

static MK_PTR pylcconfig_LcSettingC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 51 of file LcSettingC_py.c.

51 {
52 return MK(AtomCreate) (MK_RT_CALL OT_CLASS,obj);
53}

◆ pylcconfig_LcSettingC_selfDelete()

static void pylcconfig_LcSettingC_selfDelete ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 55 of file LcSettingC_py.c.

55 {
56 MK(AtomDeleteHard) (MK_RT_CALL OT_SELF);
57}
#define OT_SELF

◆ pylcconfig_LcSettingC_selfUnlink()

static void pylcconfig_LcSettingC_selfUnlink ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 59 of file LcSettingC_py.c.

59 {
60 MkObjectC_Obj *selfO = (MkObjectC_Obj*) self;
61 selfO->hdl = NULL;
62}
PyObject_HEAD MK_OBJ hdl

◆ pylcconfig_pLcSettingC_Init()

int pylcconfig_pLcSettingC_Init ( MK_RT mkrt,
PyObject * m )

Definition at line 1297 of file LcSettingC_py.c.

1298{
1299 ClassInit
1300
1301 return 0;
1302error:
1303 return -1;
1304}
#define ClassInit

Variable Documentation

◆ LcSettingC_Methods

PyMethodDef LcSettingC_Methods[]
static

Type definition

Definition at line 1169 of file LcSettingC_py.c.

1169 {
1170
1171 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1172
1173 // doc-key: LcSettingC,LcSetting,sc_
1174 { "GetNull" , (PyCFunction) NS(LcSettingC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
1175 { "HandleResolve" , (PyCFunction) NS(LcSettingC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
1176 { "Instances" , (PyCFunction) NS(LcSettingC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
1177
1178 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1179
1180 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1181
1182 // doc-key: LcSettingC,LcSetting,oC_
1183 { "Add" , (PyCFunction) NS(LcSettingC_Add) , METH_VARARGS , Add_doc },
1184
1185 // doc-key: LcSettingC,LcSetting,oc_
1186 { "AddIfNotExists" , (PyCFunction) NS(LcSettingC_AddIfNotExists) , METH_VARARGS , AddIfNotExists_doc },
1187 { "GetConfig" , (PyCFunction) NS(LcSettingC_GetConfig) , METH_NOARGS , GetConfig_doc },
1188 { "GetElem" , (PyCFunction) NS(LcSettingC_GetElem) , METH_O , GetElem_doc },
1189 { "GetMember" , (PyCFunction) NS(LcSettingC_GetMember) , METH_O , GetMember_doc },
1190 { "Lookup" , (PyCFunction) NS(LcSettingC_Lookup) , METH_O , Lookup_doc },
1191 { "LookupAll" , (PyCFunction) NS(LcSettingC_LookupAll) , METH_NOARGS , LookupAll_doc },
1192 { "Next" , (PyCFunction) NS(LcSettingC_Next) , METH_NOARGS , Next_doc },
1193 { "Parent" , (PyCFunction) NS(LcSettingC_Parent) , METH_NOARGS , Parent_doc },
1194 { "Prev" , (PyCFunction) NS(LcSettingC_Prev) , METH_NOARGS , Prev_doc },
1195 { "SetBoolElem" , (PyCFunction) NS(LcSettingC_SetBoolElem) , METH_VARARGS , SetBoolElem_doc },
1196 { "SetFloatElem" , (PyCFunction) NS(LcSettingC_SetFloatElem) , METH_VARARGS , SetFloatElem_doc },
1197 { "SetInt64Elem" , (PyCFunction) NS(LcSettingC_SetInt64Elem) , METH_VARARGS , SetInt64Elem_doc },
1198 { "SetIntElem" , (PyCFunction) NS(LcSettingC_SetIntElem) , METH_VARARGS , SetIntElem_doc },
1199 { "SetStringElem" , (PyCFunction) NS(LcSettingC_SetStringElem) , METH_VARARGS , SetStringElem_doc },
1200
1201 // doc-key: LcSettingC,LcSetting,om_
1202 { "Exists" , (PyCFunction) NS(LcSettingC_Exists) , METH_O , Exists_doc },
1203 { "GetBool" , (PyCFunction) NS(LcSettingC_GetBool) , METH_NOARGS , GetBool_doc },
1204 { "GetBoolElem" , (PyCFunction) NS(LcSettingC_GetBoolElem) , METH_O , GetBoolElem_doc },
1205 { "GetFloat" , (PyCFunction) NS(LcSettingC_GetFloat) , METH_NOARGS , GetFloat_doc },
1206 { "GetFloatElem" , (PyCFunction) NS(LcSettingC_GetFloatElem) , METH_O , GetFloatElem_doc },
1207 { "GetFormat" , (PyCFunction) NS(LcSettingC_GetFormat) , METH_NOARGS , GetFormat_doc },
1208 { "GetInt" , (PyCFunction) NS(LcSettingC_GetInt) , METH_NOARGS , GetInt_doc },
1209 { "GetInt64" , (PyCFunction) NS(LcSettingC_GetInt64) , METH_NOARGS , GetInt64_doc },
1210 { "GetInt64Elem" , (PyCFunction) NS(LcSettingC_GetInt64Elem) , METH_O , GetInt64Elem_doc },
1211 { "GetIntElem" , (PyCFunction) NS(LcSettingC_GetIntElem) , METH_O , GetIntElem_doc },
1212 { "GetString" , (PyCFunction) NS(LcSettingC_GetString) , METH_NOARGS , GetString_doc },
1213 { "GetStringElem" , (PyCFunction) NS(LcSettingC_GetStringElem) , METH_O , GetStringElem_doc },
1214 // skip class-overload: LcSettingHandleGet → HandleGet, NS(LcSettingC_HandleGet)
1215 { "Index" , (PyCFunction) NS(LcSettingC_Index) , METH_NOARGS , Index_doc },
1216 { "IsAggregate" , (PyCFunction) NS(LcSettingC_IsAggregate) , METH_NOARGS , IsAggregate_doc },
1217 { "IsArray" , (PyCFunction) NS(LcSettingC_IsArray) , METH_NOARGS , IsArray_doc },
1218 { "IsGroup" , (PyCFunction) NS(LcSettingC_IsGroup) , METH_NOARGS , IsGroup_doc },
1219 { "IsList" , (PyCFunction) NS(LcSettingC_IsList) , METH_NOARGS , IsList_doc },
1220 { "IsNumber" , (PyCFunction) NS(LcSettingC_IsNumber) , METH_NOARGS , IsNumber_doc },
1221 { "IsRoot" , (PyCFunction) NS(LcSettingC_IsRoot) , METH_NOARGS , IsRoot_doc },
1222 { "IsScalar" , (PyCFunction) NS(LcSettingC_IsScalar) , METH_NOARGS , IsScalar_doc },
1223 { "Length" , (PyCFunction) NS(LcSettingC_Length) , METH_NOARGS , Length_doc },
1224 // skip class-overload: LcSettingLog → Log, NS(LcSettingC_Log)
1225 { "Name" , (PyCFunction) NS(LcSettingC_Name) , METH_NOARGS , Name_doc },
1226 { "Remove" , (PyCFunction) NS(LcSettingC_Remove) , METH_O , Remove_doc },
1227 { "RemoveElem" , (PyCFunction) NS(LcSettingC_RemoveElem) , METH_O , RemoveElem_doc },
1228 { "SetBool" , (PyCFunction) NS(LcSettingC_SetBool) , METH_O , SetBool_doc },
1229 { "SetFloat" , (PyCFunction) NS(LcSettingC_SetFloat) , METH_O , SetFloat_doc },
1230 { "SetFormat" , (PyCFunction) NS(LcSettingC_SetFormat) , METH_O , SetFormat_doc },
1231 { "SetInt" , (PyCFunction) NS(LcSettingC_SetInt) , METH_O , SetInt_doc },
1232 { "SetInt64" , (PyCFunction) NS(LcSettingC_SetInt64) , METH_O , SetInt64_doc },
1233 { "SetString" , (PyCFunction) NS(LcSettingC_SetString) , METH_O , SetString_doc },
1234 { "SourceFile" , (PyCFunction) NS(LcSettingC_SourceFile) , METH_NOARGS , SourceFile_doc },
1235 { "SourceLine" , (PyCFunction) NS(LcSettingC_SourceLine) , METH_NOARGS , SourceLine_doc },
1236 { "Type" , (PyCFunction) NS(LcSettingC_Type) , METH_NOARGS , Type_doc },
1237
1238 // doc-key: LcSettingC,LcSetting,omo
1239 { "LookupBool" , (PyCFunction) NS(LcSettingC_LookupBool) , METH_O , LookupBool_doc },
1240 { "LookupFloat" , (PyCFunction) NS(LcSettingC_LookupFloat) , METH_O , LookupFloat_doc },
1241 { "LookupInt" , (PyCFunction) NS(LcSettingC_LookupInt) , METH_O , LookupInt_doc },
1242 { "LookupInt64" , (PyCFunction) NS(LcSettingC_LookupInt64) , METH_O , LookupInt64_doc },
1243 { "LookupString" , (PyCFunction) NS(LcSettingC_LookupString) , METH_O , LookupString_doc },
1244
1245 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
1246
1247 {NULL, NULL, 0, NULL} /* Sentinel */
1248};
#define Instances_doc
#define GetInt64_doc
#define Lookup_doc
#define GetInt64Elem_doc
#define GetConfig_doc
#define IsRoot_doc
#define LookupBool_doc
#define IsGroup_doc
#define GetBool_doc
#define GetStringElem_doc
#define SetString_doc
#define LookupFloat_doc
#define SetInt64Elem_doc
#define GetMember_doc
#define IsAggregate_doc
#define GetIntElem_doc
#define SetIntElem_doc
#define SetFormat_doc
#define GetNull_doc
#define SetBoolElem_doc
#define Remove_doc
#define Next_doc
#define SetBool_doc
#define SetStringElem_doc
#define SetFloatElem_doc
#define HandleResolve_doc
#define SetFloat_doc
#define LookupInt_doc
#define GetFloatElem_doc
#define IsList_doc
#define Prev_doc
#define GetFormat_doc
#define Index_doc
#define Parent_doc
#define GetInt_doc
#define IsArray_doc
#define LookupString_doc
#define Type_doc
#define Exists_doc
#define GetFloat_doc
#define AddIfNotExists_doc
#define GetBoolElem_doc
#define IsNumber_doc
#define SourceLine_doc
#define LookupInt64_doc
#define LookupAll_doc
#define SourceFile_doc
#define GetString_doc
#define IsScalar_doc
#define Length_doc
#define GetElem_doc
#define RemoveElem_doc
#define Add_doc
#define SetInt64_doc
#define Name_doc
#define SetInt_doc

◆ pylcconfig_LcSettingCR

OT_CLASS_TYPE_REF pylcconfig_LcSettingCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymsgque.LcSettingC",
.tp_doc = "PyMsgque LcSettingC Type",
.tp_basicsize = sizeof(LcSettingC_Obj),
.tp_itemsize = 0,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = LcSettingC_Methods,
.tp_base = NULL
}
static PyMethodDef LcSettingC_Methods[]
struct LcSettingC_Obj LcSettingC_Obj

Public API

Definition at line 1281 of file LcSettingC_py.c.

1281 {
1282 PyVarObject_HEAD_INIT(NULL, 0)
1283 .tp_name = "pymsgque.LcSettingC",
1284 .tp_doc = "PyMsgque LcSettingC Type",
1285 .tp_basicsize = sizeof(LcSettingC_Obj),
1286 .tp_itemsize = 0,
1287
1288#ifdef LcSettingC_Dealloc
1289 .tp_dealloc = LcSettingC_Dealloc,
1290#endif
1291
1292 .tp_flags = Py_TPFLAGS_DEFAULT,
1293 .tp_methods = LcSettingC_Methods,
1294 .tp_base = NULL
1295};