pylcconfig 9.0
Loading...
Searching...
No Matches
Macros | Functions | Variables
LcConfigC_python.c File Reference

LcConfigC_python.c - 25 May 2023 - aotto1968. More...

#include "LibLcConfig_python.h"
+ Include dependency graph for LcConfigC_python.c:

Go to the source code of this file.

Macros

#define NHI1_FILE_NAME   "LcConfigC_python.c"
 
#define OT_retObj_CONSTR(mng)   OT_retObj_SET(NS(LcConfigC_CTOR)((PyTypeObject*)class,mng))
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Lc,LcConfigC,0)
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl(Lc,LcConfigC,1)
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define META_CONTEXT_S   MK_ERROR_DEFAULT
 
#define Create_doc   "LcConfigC LcConfigC.Create()"
 
#define new_doc   "LcConfigC LcConfigC.new()"
 
#define FromHandle_doc   "LcConfigC LcConfigC.FromHandle(exporthdl:long)"
 
#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=\"\"?, ?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)"
 
#define SetOption_doc   "config.SetOption(option:LcConfigOptionsEF, flag:bool)"
 
#define SetOptions_doc   "config.SetOptions(options:LcConfigOptionsEF)"
 
#define SetSettingDeleteFunc_doc   "cfg.SetSettingDeleteFunc(fSettingDeleteData:LC_CBP)"
 
#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 PyObject * py_lcconfig_LcConfigC_CTOR (PyTypeObject *type, LC_CFG hdl)
 
PyObject * py_lcconfig_LcConfigC_ObjNew (PyTypeObject *type, LC_CFG hdl)
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_LcConfigC_GetOptions (LcConfigC_ARGS)
  Python: LcConfigOptionsEF config.GetOptions() C-API
These functions get and set the options for the configuration config
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_LcConfigC_Next (LcConfigC_ARGS)
  Python: LcConfigC cfg.Next() C-API
get next instance from linked-list of LcConfigS type
 
static OT_ProcRet py_lcconfig_LcConfigC_Prev (LcConfigC_ARGS)
  Python: LcConfigC cfg.Prev() C-API
get previous instance from linked-list of LcConfigS type
 
static OT_ProcRet py_lcconfig_LcConfigC_Instances (OtClass_ARGS)
  Python: [static] LcConfigC LcConfigC.Instances() C-API
get head-instance from linked-list of LcConfigS type …
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Python: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet py_lcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Python: cfg.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string=""?, ?lvl:int32=0?) C-API
log the config
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Python: string cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_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 py_lcconfig_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 py_lcconfig_LcConfigC_SetIncludeFunc (LcConfigC_ARGS)
  Python: cfg.SetIncludeFunc(fConfigIncludeData:LC_CBP) C-API

 
static OT_ProcRet py_lcconfig_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 py_lcconfig_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 py_lcconfig_LcConfigC_SetSettingDeleteFunc (LcConfigC_ARGS)
  Python: cfg.SetSettingDeleteFunc(fSettingDeleteData:LC_CBP) C-API
callback called on delete a setting, used to cleanup user data…
 
static OT_ProcRet py_lcconfig_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 py_lcconfig_LcConfigC_Create (OtClass_ARGS)
  Python: [constructor] LcConfigC.Create() C-API
create a LcConfigC instance …
 
static OT_ProcRet py_lcconfig_LcConfigC_new (CONSTR_ARGS)
  Python: [constructor] LcConfigC.new() C-API
create a LcConfigC instance …
 
static OT_ProcRet py_lcconfig_LcConfigC_FromHandle (OtClass_ARGS)
  Python: [static] LcConfigC LcConfigC.FromHandle(exporthdl:long) C-API
return a LcConfigC from exporthdl
 

Variables

static PyMethodDef LcConfigC_Methods []
 
PyTypeObject py_lcconfig_LcConfigC
 

Detailed Description

LcConfigC_python.c - 25 May 2023 - aotto1968.

Version
d0c6a32258ed70874c8bd12bab8e298e4d7c9760
Date
Thu May 25 14:41:42 2023 +0200
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file LcConfigC_python.c.

Macro Definition Documentation

◆ Clear_doc

#define Clear_doc   "config.Clear()"

Definition at line 68 of file LcConfigC_python.c.

◆ Create_doc

#define Create_doc   "LcConfigC LcConfigC.Create()"

doc definition

Definition at line 54 of file LcConfigC_python.c.

◆ ErrorType_doc

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

Definition at line 69 of file LcConfigC_python.c.

◆ FromHandle_doc

#define FromHandle_doc   "LcConfigC LcConfigC.FromHandle(exporthdl:long)"

Definition at line 58 of file LcConfigC_python.c.

◆ GetDefaultFormat_doc

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

Definition at line 70 of file LcConfigC_python.c.

◆ GetFloatPrecision_doc

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

Definition at line 71 of file LcConfigC_python.c.

◆ GetIncludeDir_doc

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

Definition at line 72 of file LcConfigC_python.c.

◆ GetOption_doc

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

Definition at line 73 of file LcConfigC_python.c.

◆ GetOptions_doc

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

Definition at line 74 of file LcConfigC_python.c.

◆ GetTabWidth_doc

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

Definition at line 75 of file LcConfigC_python.c.

◆ Instances_doc

#define Instances_doc   "LcConfigC LcConfigC.Instances()"

Definition at line 59 of file LcConfigC_python.c.

◆ Log_doc

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

Definition at line 76 of file LcConfigC_python.c.

◆ Lookup_doc

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

Definition at line 62 of file LcConfigC_python.c.

◆ LookupBool_doc

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

Definition at line 90 of file LcConfigC_python.c.

◆ LookupFloat_doc

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

Definition at line 91 of file LcConfigC_python.c.

◆ LookupInt64_doc

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

Definition at line 93 of file LcConfigC_python.c.

◆ LookupInt_doc

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

Definition at line 92 of file LcConfigC_python.c.

◆ LookupString_doc

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

Definition at line 94 of file LcConfigC_python.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   MK_ERROR_DEFAULT

Definition at line 43 of file LcConfigC_python.c.

◆ new_doc

#define new_doc   "LcConfigC LcConfigC.new()"

Definition at line 55 of file LcConfigC_python.c.

◆ Next_doc

#define Next_doc   "LcConfigC cfg.Next()"

Definition at line 63 of file LcConfigC_python.c.

◆ NHI1_FILE_NAME

#define NHI1_FILE_NAME   "LcConfigC_python.c"

Definition at line 14 of file LcConfigC_python.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR (   mng)    OT_retObj_SET(NS(LcConfigC_CTOR)((PyTypeObject*)class,mng))

Definition at line 18 of file LcConfigC_python.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(Lc,LcConfigC,0)

Definition at line 20 of file LcConfigC_python.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
LC_CFG hdl = (LC_CFG) &MkERROR;
struct LcConfigS * LC_CFG
class-shortcut for struct LcConfigS *, all shortcut using the XX_YYY syntax (only for public API) …
#define LcRtSetup_NULL
#define MK_RT_UNUSED
Class to represent a the entire configuration of the of the libconfig library …

Definition at line 21 of file LcConfigC_python.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl(Lc,LcConfigC,1)

Definition at line 23 of file LcConfigC_python.c.

◆ OT_SETUP_hdl_static

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

Definition at line 24 of file LcConfigC_python.c.

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 27 of file LcConfigC_python.c.

◆ Prev_doc

#define Prev_doc   "LcConfigC cfg.Prev()"

Definition at line 64 of file LcConfigC_python.c.

◆ ReadFile_doc

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

Definition at line 77 of file LcConfigC_python.c.

◆ ReadString_doc

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

Definition at line 78 of file LcConfigC_python.c.

◆ RootSetting_doc

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

Definition at line 65 of file LcConfigC_python.c.

◆ SetDefaultFormat_doc

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

Definition at line 79 of file LcConfigC_python.c.

◆ SetFloatPrecision_doc

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

Definition at line 80 of file LcConfigC_python.c.

◆ SetIncludeDir_doc

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

Definition at line 81 of file LcConfigC_python.c.

◆ SetIncludeFunc_doc

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

Definition at line 82 of file LcConfigC_python.c.

◆ SetOption_doc

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

Definition at line 83 of file LcConfigC_python.c.

◆ SetOptions_doc

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

Definition at line 84 of file LcConfigC_python.c.

◆ SetSettingDeleteFunc_doc

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

Definition at line 85 of file LcConfigC_python.c.

◆ SetTabWidth_doc

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

Definition at line 86 of file LcConfigC_python.c.

◆ WriteFile_doc

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

Definition at line 87 of file LcConfigC_python.c.

◆ WriteString_doc

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

Definition at line 95 of file LcConfigC_python.c.

Function Documentation

◆ py_lcconfig_LcConfigC_CTOR()

static PyObject * py_lcconfig_LcConfigC_CTOR ( PyTypeObject *  type,
LC_CFG  hdl 
)
static

Definition at line 30 of file LcConfigC_python.c.

◆ py_lcconfig_LcConfigC_ObjNew()

PyObject * py_lcconfig_LcConfigC_ObjNew ( PyTypeObject *  type,
LC_CFG  hdl 
)

Definition at line 36 of file LcConfigC_python.c.

Variable Documentation

◆ LcConfigC_Methods

PyMethodDef LcConfigC_Methods[]
static

Type definition

Definition at line 738 of file LcConfigC_python.c.

◆ py_lcconfig_LcConfigC

PyTypeObject py_lcconfig_LcConfigC
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) py_lcconfig_LcConfigC_new ,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = LcConfigC_Methods,
.tp_base = &py_mkkernel_MkObjectC
}
static PyMethodDef LcConfigC_Methods[]
PyTypeObject py_mkkernel_MkObjectC
static OT_ProcRet py_lcconfig_LcConfigC_new(CONSTR_ARGS)
Python: [constructor] LcConfigC.new() → C-API create a LcConfigC instance …

Definition at line 792 of file LcConfigC_python.c.