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

tag: nhi1-release-250425 More...

+ Include dependency graph for LcConfigC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "LcConfigC_py.c"
 
#define OT_CLASS   (&NS(LcConfigCR))
 
#define OT_CLASS_NAME   "LcConfigC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(LcConfigC)
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(LcConfigC)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(LcConfigC)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define LcConfigCTT   LC(LcConfigThreadState).LcConfigCTT
 
#define ClassInit
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define Create_doc   "LcConfigC LcConfigC.Create()"
 
#define new_doc   "LcConfigC LcConfigC.new()"
 
#define GetNull_doc   "LcConfigC LcConfigC.GetNull()"
 
#define HandleResolve_doc   "LcConfigC LcConfigC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "LcConfigC LcConfigC.Instances()"
 
#define Lookup_doc   "LcSettingC config.Lookup(path:string) (const)"
 
#define Next_doc   "LcConfigC cfg.Next()"
 
#define Prev_doc   "LcConfigC cfg.Prev()"
 
#define RootSetting_doc   "LcSettingC config.RootSetting() (const)"
 
#define Clear_doc   "config.Clear()"
 
#define ErrorType_doc   "LcErrorTypeE config.ErrorType() (const)"
 
#define GetDefaultFormat_doc   "LcConfigFormatE config.GetDefaultFormat() (const)"
 
#define GetFloatPrecision_doc   "int16 config.GetFloatPrecision() (const)"
 
#define GetIncludeDir_doc   "string config.GetIncludeDir() (const)"
 
#define GetOption_doc   "bool config.GetOption(option:LcConfigOptionsEF) (const)"
 
#define GetOptions_doc   "LcConfigOptionsEF config.GetOptions() (const)"
 
#define GetTabWidth_doc   "int16 config.GetTabWidth() (const)"
 
#define Log_doc   "cfg.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"
 
#define ReadFile_doc   "config.ReadFile(filename:string)"
 
#define ReadString_doc   "config.ReadString(str:string)"
 
#define SetDefaultFormat_doc   "config.SetDefaultFormat(format:LcConfigFormatE)"
 
#define SetFloatPrecision_doc   "config.SetFloatPrecision(digits:int16)"
 
#define SetIncludeDir_doc   "config.SetIncludeDir(include_dir:string)"
 
#define SetIncludeFunc_doc   "cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=None?)"
 
#define SetOption_doc   "config.SetOption(option:LcConfigOptionsEF, flag:bool)"
 
#define SetOptions_doc   "config.SetOptions(options:LcConfigOptionsEF)"
 
#define SetSettingDeleteFunc_doc   "cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=None?)"
 
#define SetTabWidth_doc   "config.SetTabWidth(width:int16)"
 
#define WriteFile_doc   "config.WriteFile(filename:string)"
 
#define LookupBool_doc   "bool config.LookupBool(path:string) (const)"
 
#define LookupFloat_doc   "double config.LookupFloat(path:string) (const)"
 
#define LookupInt_doc   "int32 config.LookupInt(path:string) (const)"
 
#define LookupInt64_doc   "int64 config.LookupInt64(path:string) (const)"
 
#define LookupString_doc   "string config.LookupString(path:string) (const)"
 
#define WriteString_doc   "string cfg.WriteString() (const)"
 

Functions

static OT_OBJ_T pylcconfig_LcConfigC_CTOR (MK_RT mkrt, OT_CLS_T type, LC_CFG hdl)
 
static MK_PTR pylcconfig_LcConfigC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pylcconfig_LcConfigC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pylcconfig_LcConfigC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static OT_ProcRet pylcconfig_LcConfigC_HandleResolve (OtClass_ARGS)
  Python: [static] LcConfigC LcConfigC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a LcConfigC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pylcconfig_LcConfigC_HandleGet (LcConfigC_ARGS)
 
static OT_ProcRet pylcconfig_LcConfigC_Next (LcConfigC_ARGS)
  Python: LcConfigC cfg.Next() C-API
get next instance from linked-list of LcConfigS type
 
static OT_ProcRet pylcconfig_LcConfigC_Prev (LcConfigC_ARGS)
  Python: LcConfigC cfg.Prev() C-API
get previous instance from linked-list of LcConfigS type
 
static OT_ProcRet pylcconfig_LcConfigC_Instances (OtClass_ARGS)
  Python: [static] LcConfigC LcConfigC.Instances() C-API
get head-instance from linked-list of LcConfigS type …
 
static OT_ProcRet pylcconfig_LcConfigC_GetNull (OtClass_ARGS)
  Python: [static] LcConfigC LcConfigC.GetNull() C-API
Null-Slot - return a LcConfigC typed NULL instance …
 
static OT_ProcRet pylcconfig_LcConfigC_ErrorType (LcConfigC_ARGS)
  Python: LcErrorTypeE config.ErrorType() C-API
This function, which is implemented as a macro, returns the type of error that occurred during the last call to one of the read or write functions …
 
static OT_ProcRet pylcconfig_LcConfigC_GetDefaultFormat (LcConfigC_ARGS)
  Python: LcConfigFormatE config.GetDefaultFormat() C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_GetFloatPrecision (LcConfigC_ARGS)
  Python: int16 config.GetFloatPrecision() C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
static OT_ProcRet pylcconfig_LcConfigC_GetIncludeDir (LcConfigC_ARGS)
  Python: string config.GetIncludeDir() C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_GetOption (LcConfigC_ARGS)
  Python: bool config.GetOption(option:LcConfigOptionsEF) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_GetOptions (LcConfigC_ARGS)
  Python: LcConfigOptionsEF config.GetOptions() C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_GetTabWidth (LcConfigC_ARGS)
  Python: int16 config.GetTabWidth() C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Lookup (LcConfigC_ARGS)
  Python: LcSettingC config.Lookup(path:string) C-API
This function locates the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_LookupBool (LcConfigC_ARGS)
  Python: bool config.LookupBool(path:string) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_LookupFloat (LcConfigC_ARGS)
  Python: double config.LookupFloat(path:string) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_LookupInt (LcConfigC_ARGS)
  Python: int32 config.LookupInt(path:string) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_LookupInt64 (LcConfigC_ARGS)
  Python: int64 config.LookupInt64(path:string) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_LookupString (LcConfigC_ARGS)
  Python: string config.LookupString(path:string) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
static OT_ProcRet pylcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Python: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Python: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Python: cfg.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the config
 
static OT_ProcRet pylcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Python: config.ReadFile(filename:string) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
static OT_ProcRet pylcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Python: config.ReadString(str:string) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
static OT_ProcRet pylcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Python: config.WriteFile(filename:string) C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet pylcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Python: string cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 
static OT_ProcRet pylcconfig_LcConfigC_SetDefaultFormat (LcConfigC_ARGS)
  Python: config.SetDefaultFormat(format:LcConfigFormatE) C-API
These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_SetFloatPrecision (LcConfigC_ARGS)
  Python: config.SetFloatPrecision(digits:int16) C-API
Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
static OT_ProcRet pylcconfig_LcConfigC_SetIncludeDir (LcConfigC_ARGS)
  Python: config.SetIncludeDir(include_dir:string) C-API
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_SetIncludeFunc (LcConfigC_ARGS)
  Python: cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=None?) C-API
set the __parser__(callback-name) for the include-config-file
 
static OT_ProcRet pylcconfig_LcConfigC_SetOption (LcConfigC_ARGS)
  Python: config.SetOption(option:LcConfigOptionsEF, flag:bool) C-API
Since v1.7 These functions get and set the given option of the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_SetOptions (LcConfigC_ARGS)
  Python: config.SetOptions(options:LcConfigOptionsEF) C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_SetSettingDeleteFunc (LcConfigC_ARGS)
  Python: cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=None?) C-API
set the callback-name for the setting-delete
 
static OT_ProcRet pylcconfig_LcConfigC_SetTabWidth (LcConfigC_ARGS)
  Python: config.SetTabWidth(width:int16) C-API
These functions, which are implemented as macros, get and set the tab width for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Create (OtClass_ARGS)
  Python: [constructor,static] LcConfigC LcConfigC.Create() C-API
create a LcConfigC instance …
 
static OT_ProcRet pylcconfig_LcConfigC_new (CONSTR_ARGS)
  Python: [constructor,static] LcConfigC LcConfigC.new() C-API
create a LcConfigC instance …
 
int pylcconfig_pLcConfigC_Init (MK_RT mkrt, PyObject *m)
 

Variables

static PyMethodDef LcConfigC_Methods []
 
OT_CLASS_TYPE_REF pylcconfig_LcConfigCR
 

Detailed Description

tag: nhi1-release-250425

Definition in file LcConfigC_py.c.

Macro Definition Documentation

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
\
/* protect against double call */ \
if (LcConfigCTT->selfCreate == NS(LcConfigC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
LcConfigCTT->selfCreate = NS(LcConfigC_selfCreate); \
LcConfigCTT->selfDelete = NS(LcConfigC_selfDelete); \
LcConfigCTT->selfUnlink = NS(LcConfigC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(LcConfigCR).tp_base = LcConfigC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "LcConfigC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
LcConfigC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define LcConfigCTT
#define OT_CLASS
#define LcConfigC_MK_NULL
#define NS(n)
#define LcConfigC_base
#define MK(n)
#define LcConfigSTT
instance-type as MkTypeS-class-type (cast from LcConfigST into MkTypeS) …
MK_OK
#define MK_RT_CALL
Struct to represent the data from the LcConfigC …

Definition at line 65 of file LcConfigC_py.c.

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

◆ Clear_doc

#define Clear_doc   "config.Clear()"

Definition at line 114 of file LcConfigC_py.c.

◆ Create_doc

#define Create_doc   "LcConfigC LcConfigC.Create()"

doc definition

Definition at line 99 of file LcConfigC_py.c.

◆ ErrorType_doc

#define ErrorType_doc   "LcErrorTypeE config.ErrorType() (const)"

Definition at line 115 of file LcConfigC_py.c.

◆ GetDefaultFormat_doc

#define GetDefaultFormat_doc   "LcConfigFormatE config.GetDefaultFormat() (const)"

Definition at line 116 of file LcConfigC_py.c.

◆ GetFloatPrecision_doc

#define GetFloatPrecision_doc   "int16 config.GetFloatPrecision() (const)"

Definition at line 117 of file LcConfigC_py.c.

◆ GetIncludeDir_doc

#define GetIncludeDir_doc   "string config.GetIncludeDir() (const)"

Definition at line 118 of file LcConfigC_py.c.

◆ GetNull_doc

#define GetNull_doc   "LcConfigC LcConfigC.GetNull()"

Definition at line 103 of file LcConfigC_py.c.

◆ GetOption_doc

#define GetOption_doc   "bool config.GetOption(option:LcConfigOptionsEF) (const)"

Definition at line 119 of file LcConfigC_py.c.

◆ GetOptions_doc

#define GetOptions_doc   "LcConfigOptionsEF config.GetOptions() (const)"

Definition at line 120 of file LcConfigC_py.c.

◆ GetTabWidth_doc

#define GetTabWidth_doc   "int16 config.GetTabWidth() (const)"

Definition at line 121 of file LcConfigC_py.c.

◆ HandleResolve_doc

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

Definition at line 104 of file LcConfigC_py.c.

◆ Instances_doc

#define Instances_doc   "LcConfigC LcConfigC.Instances()"

Definition at line 105 of file LcConfigC_py.c.

◆ LcConfigCTT

#define LcConfigCTT   LC(LcConfigThreadState).LcConfigCTT

Definition at line 40 of file LcConfigC_py.c.

◆ Log_doc

#define Log_doc   "cfg.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"

Definition at line 123 of file LcConfigC_py.c.

◆ Lookup_doc

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

Definition at line 108 of file LcConfigC_py.c.

◆ LookupBool_doc

#define LookupBool_doc   "bool config.LookupBool(path:string) (const)"

Definition at line 137 of file LcConfigC_py.c.

◆ LookupFloat_doc

#define LookupFloat_doc   "double config.LookupFloat(path:string) (const)"

Definition at line 138 of file LcConfigC_py.c.

◆ LookupInt64_doc

#define LookupInt64_doc   "int64 config.LookupInt64(path:string) (const)"

Definition at line 140 of file LcConfigC_py.c.

◆ LookupInt_doc

#define LookupInt_doc   "int32 config.LookupInt(path:string) (const)"

Definition at line 139 of file LcConfigC_py.c.

◆ LookupString_doc

#define LookupString_doc   "string config.LookupString(path:string) (const)"

Definition at line 141 of file LcConfigC_py.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 88 of file LcConfigC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "LcConfigC_py.c"

Definition at line 11 of file LcConfigC_py.c.

◆ new_doc

#define new_doc   "LcConfigC LcConfigC.new()"

Definition at line 100 of file LcConfigC_py.c.

◆ Next_doc

#define Next_doc   "LcConfigC cfg.Next()"

Definition at line 109 of file LcConfigC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(LcConfigCR))

Definition at line 16 of file LcConfigC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "LcConfigC"

Definition at line 17 of file LcConfigC_py.c.

◆ OT_LNG2META

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

Definition at line 19 of file LcConfigC_py.c.

◆ OT_retObj_CONSTR

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

Definition at line 21 of file LcConfigC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(LcConfigC)

Definition at line 23 of file LcConfigC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(LcConfigC)

Definition at line 24 of file LcConfigC_py.c.

◆ OT_SETUP_hdl_constr

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

Definition at line 25 of file LcConfigC_py.c.

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

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(LcConfigC)

Definition at line 27 of file LcConfigC_py.c.

◆ OT_SETUP_hdl_static

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

Definition at line 28 of file LcConfigC_py.c.

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

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 31 of file LcConfigC_py.c.

◆ Prev_doc

#define Prev_doc   "LcConfigC cfg.Prev()"

Definition at line 110 of file LcConfigC_py.c.

◆ ReadFile_doc

#define ReadFile_doc   "config.ReadFile(filename:string)"

Definition at line 124 of file LcConfigC_py.c.

◆ ReadString_doc

#define ReadString_doc   "config.ReadString(str:string)"

Definition at line 125 of file LcConfigC_py.c.

◆ RootSetting_doc

#define RootSetting_doc   "LcSettingC config.RootSetting() (const)"

Definition at line 111 of file LcConfigC_py.c.

◆ SetDefaultFormat_doc

#define SetDefaultFormat_doc   "config.SetDefaultFormat(format:LcConfigFormatE)"

Definition at line 126 of file LcConfigC_py.c.

◆ SetFloatPrecision_doc

#define SetFloatPrecision_doc   "config.SetFloatPrecision(digits:int16)"

Definition at line 127 of file LcConfigC_py.c.

◆ SetIncludeDir_doc

#define SetIncludeDir_doc   "config.SetIncludeDir(include_dir:string)"

Definition at line 128 of file LcConfigC_py.c.

◆ SetIncludeFunc_doc

#define SetIncludeFunc_doc   "cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=None?)"

Definition at line 129 of file LcConfigC_py.c.

◆ SetOption_doc

#define SetOption_doc   "config.SetOption(option:LcConfigOptionsEF, flag:bool)"

Definition at line 130 of file LcConfigC_py.c.

◆ SetOptions_doc

#define SetOptions_doc   "config.SetOptions(options:LcConfigOptionsEF)"

Definition at line 131 of file LcConfigC_py.c.

◆ SetSettingDeleteFunc_doc

#define SetSettingDeleteFunc_doc   "cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=None?)"

Definition at line 132 of file LcConfigC_py.c.

◆ SetTabWidth_doc

#define SetTabWidth_doc   "config.SetTabWidth(width:int16)"

Definition at line 133 of file LcConfigC_py.c.

◆ SetupRtFromObj_X

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

Definition at line 34 of file LcConfigC_py.c.

◆ SetupRtFromObj_XN

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

Definition at line 35 of file LcConfigC_py.c.

◆ WriteFile_doc

#define WriteFile_doc   "config.WriteFile(filename:string)"

Definition at line 134 of file LcConfigC_py.c.

◆ WriteString_doc

#define WriteString_doc   "string cfg.WriteString() (const)"

Definition at line 142 of file LcConfigC_py.c.

Function Documentation

◆ pylcconfig_LcConfigC_CTOR()

static OT_OBJ_T pylcconfig_LcConfigC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
LC_CFG hdl )
inlinestatic

Definition at line 44 of file LcConfigC_py.c.

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

◆ pylcconfig_LcConfigC_selfCreate()

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

Definition at line 51 of file LcConfigC_py.c.

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

◆ pylcconfig_LcConfigC_selfDelete()

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

Definition at line 55 of file LcConfigC_py.c.

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

◆ pylcconfig_LcConfigC_selfUnlink()

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

Definition at line 59 of file LcConfigC_py.c.

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

◆ pylcconfig_pLcConfigC_Init()

int pylcconfig_pLcConfigC_Init ( MK_RT mkrt,
PyObject * m )

Definition at line 894 of file LcConfigC_py.c.

895{
897
898 return 0;
899error:
900 return -1;
901}
#define ClassInit

Variable Documentation

◆ LcConfigC_Methods

PyMethodDef LcConfigC_Methods[]
static

Type definition

Definition at line 818 of file LcConfigC_py.c.

818 {
819
820 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
821
822 // doc-key: LcConfigC,LcConfig,sCc
823 { "Create" , (PyCFunction) NS(LcConfigC_Create) , METH_NOARGS|METH_CLASS , Create_doc },
824
825 // doc-key: LcConfigC,LcConfig,sc_
826 { "GetNull" , (PyCFunction) NS(LcConfigC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
827 { "HandleResolve" , (PyCFunction) NS(LcConfigC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
828 { "Instances" , (PyCFunction) NS(LcConfigC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
829
830 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
831
832 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
833
834 // doc-key: LcConfigC,LcConfig,oc_
835 { "Lookup" , (PyCFunction) NS(LcConfigC_Lookup) , METH_O , Lookup_doc },
836 { "Next" , (PyCFunction) NS(LcConfigC_Next) , METH_NOARGS , Next_doc },
837 { "Prev" , (PyCFunction) NS(LcConfigC_Prev) , METH_NOARGS , Prev_doc },
838 { "RootSetting" , (PyCFunction) NS(LcConfigC_RootSetting) , METH_NOARGS , RootSetting_doc },
839
840 // doc-key: LcConfigC,LcConfig,om_
841 { "Clear" , (PyCFunction) NS(LcConfigC_Clear) , METH_NOARGS , Clear_doc },
842 { "ErrorType" , (PyCFunction) NS(LcConfigC_ErrorType) , METH_NOARGS , ErrorType_doc },
843 { "GetDefaultFormat" , (PyCFunction) NS(LcConfigC_GetDefaultFormat) , METH_NOARGS , GetDefaultFormat_doc },
844 { "GetFloatPrecision" , (PyCFunction) NS(LcConfigC_GetFloatPrecision) , METH_NOARGS , GetFloatPrecision_doc },
845 { "GetIncludeDir" , (PyCFunction) NS(LcConfigC_GetIncludeDir) , METH_NOARGS , GetIncludeDir_doc },
846 { "GetOption" , (PyCFunction) NS(LcConfigC_GetOption) , METH_O , GetOption_doc },
847 { "GetOptions" , (PyCFunction) NS(LcConfigC_GetOptions) , METH_NOARGS , GetOptions_doc },
848 { "GetTabWidth" , (PyCFunction) NS(LcConfigC_GetTabWidth) , METH_NOARGS , GetTabWidth_doc },
849 // skip class-overload: LcConfigHandleGet → HandleGet, NS(LcConfigC_HandleGet)
850 { "Log" , (PyCFunction) NS(LcConfigC_Log) , METH_VARARGS , Log_doc },
851 { "ReadFile" , (PyCFunction) NS(LcConfigC_ReadFile) , METH_O , ReadFile_doc },
852 { "ReadString" , (PyCFunction) NS(LcConfigC_ReadString) , METH_O , ReadString_doc },
853 { "SetDefaultFormat" , (PyCFunction) NS(LcConfigC_SetDefaultFormat) , METH_O , SetDefaultFormat_doc },
854 { "SetFloatPrecision" , (PyCFunction) NS(LcConfigC_SetFloatPrecision) , METH_O , SetFloatPrecision_doc },
855 { "SetIncludeDir" , (PyCFunction) NS(LcConfigC_SetIncludeDir) , METH_O , SetIncludeDir_doc },
856 { "SetIncludeFunc" , (PyCFunction) NS(LcConfigC_SetIncludeFunc) , METH_VARARGS , SetIncludeFunc_doc },
857 { "SetOption" , (PyCFunction) NS(LcConfigC_SetOption) , METH_VARARGS , SetOption_doc },
858 { "SetOptions" , (PyCFunction) NS(LcConfigC_SetOptions) , METH_O , SetOptions_doc },
859 { "SetSettingDeleteFunc" , (PyCFunction) NS(LcConfigC_SetSettingDeleteFunc) , METH_VARARGS , SetSettingDeleteFunc_doc },
860 { "SetTabWidth" , (PyCFunction) NS(LcConfigC_SetTabWidth) , METH_O , SetTabWidth_doc },
861 { "WriteFile" , (PyCFunction) NS(LcConfigC_WriteFile) , METH_O , WriteFile_doc },
862
863 // doc-key: LcConfigC,LcConfig,omo
864 { "LookupBool" , (PyCFunction) NS(LcConfigC_LookupBool) , METH_O , LookupBool_doc },
865 { "LookupFloat" , (PyCFunction) NS(LcConfigC_LookupFloat) , METH_O , LookupFloat_doc },
866 { "LookupInt" , (PyCFunction) NS(LcConfigC_LookupInt) , METH_O , LookupInt_doc },
867 { "LookupInt64" , (PyCFunction) NS(LcConfigC_LookupInt64) , METH_O , LookupInt64_doc },
868 { "LookupString" , (PyCFunction) NS(LcConfigC_LookupString) , METH_O , LookupString_doc },
869 { "WriteString" , (PyCFunction) NS(LcConfigC_WriteString) , METH_NOARGS , WriteString_doc },
870
871 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
872
873 {NULL, NULL, 0, NULL} /* Sentinel */
874};
#define Instances_doc
#define SetIncludeFunc_doc
#define WriteString_doc
#define ReadString_doc
#define ReadFile_doc
#define SetIncludeDir_doc
#define Lookup_doc
#define SetOption_doc
#define LookupBool_doc
#define LookupFloat_doc
#define ErrorType_doc
#define Log_doc
#define SetOptions_doc
#define SetTabWidth_doc
#define GetNull_doc
#define SetSettingDeleteFunc_doc
#define Next_doc
#define GetTabWidth_doc
#define Create_doc
#define HandleResolve_doc
#define LookupInt_doc
#define Prev_doc
#define SetFloatPrecision_doc
#define LookupString_doc
#define GetFloatPrecision_doc
#define WriteFile_doc
#define SetDefaultFormat_doc
#define RootSetting_doc
#define LookupInt64_doc
#define GetOptions_doc
#define Clear_doc
#define GetOption_doc
#define GetDefaultFormat_doc
#define GetIncludeDir_doc

◆ pylcconfig_LcConfigCR

OT_CLASS_TYPE_REF pylcconfig_LcConfigCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymsgque.LcConfigC",
.tp_doc = "PyMsgque LcConfigC Type",
.tp_basicsize = sizeof(LcConfigC_Obj),
.tp_itemsize = 0,
.tp_new = (newfunc) pylcconfig_LcConfigC_new ,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = LcConfigC_Methods,
.tp_base = NULL
}
static PyMethodDef LcConfigC_Methods[]
struct LcConfigC_Obj LcConfigC_Obj
static OT_ProcRet pylcconfig_LcConfigC_new(CONSTR_ARGS)
Python: [constructor,static] LcConfigC LcConfigC.new() → C-API create a LcConfigC instance …

Public API

Definition at line 882 of file LcConfigC_py.c.

882 {
883 PyVarObject_HEAD_INIT(NULL, 0)
884 .tp_name = "pymsgque.LcConfigC",
885 .tp_doc = "PyMsgque LcConfigC Type",
886 .tp_basicsize = sizeof(LcConfigC_Obj),
887 .tp_itemsize = 0,
888 .tp_new = (newfunc) NS(LcConfigC_new),
889 .tp_flags = Py_TPFLAGS_DEFAULT,
890 .tp_methods = LcConfigC_Methods,
891 .tp_base = NULL
892};