10#define META_FILE_NAME "LcConfigC_rb.c"
14#define OT_CLASS NS(LcConfigC)
15#define OT_CLASS_NAME "LcConfigC"
17#define OT_LNG2META(O) LcCfg(VAL2MNG(O))
39 RUBY_TYPED_FREE_IMMEDIATELY
66 RDATA(self)->data = NULL;
69#define S_INIT NS(sInit)(MK_RT_CALL_ONLY)
87#define OT_SETUP_hdl OT_SETUP_hdl_tmpl(LcConfigC);
88#define OT_SETUP_hdl__null_allow OT_SETUP_hdl_tmpl__null_allow(LcConfigC);
89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 LcConfigC_type hdl = (LcConfigC_type) &MkERROR;
92#define OT_SETUP_hdl_destr OT_SETUP_hdl_tmpl__null_allow(LcConfigC);
93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = LcConfigC##_TT;
95#define OT_SETUP_hdl_static_constr OT_SETUP_hdl_static
97#if !defined(SetupRtFromObj_X)
98 #define SetupRtFromObj_X(hdl) AllRtSetup_X(hdl)
99 #define SetupRtFromObj_XN(hdl) AllRtSetup_XN(hdl)
107#define Create_doc "LcConfigC LcConfigC.Create()"
108#define new_doc "LcConfigC LcConfigC.new()"
111#define GetNull_doc "LcConfigC LcConfigC.GetNull()"
112#define HandleResolve_doc "LcConfigC LcConfigC.HandleResolve(netHdl:MK_HDL)"
113#define Instances_doc "LcConfigC LcConfigC.Instances()"
116#define Lookup_doc "LcSettingC config.Lookup(path:string) (const)"
117#define Next_doc "LcConfigC cfg.Next()"
118#define Prev_doc "LcConfigC cfg.Prev()"
119#define RootSetting_doc "LcSettingC config.RootSetting() (const)"
122#define Clear_doc "config.Clear()"
123#define ErrorType_doc "LcErrorTypeE config.ErrorType() (const)"
124#define GetDefaultFormat_doc "LcConfigFormatE config.GetDefaultFormat() (const)"
125#define GetFloatPrecision_doc "int16 config.GetFloatPrecision() (const)"
126#define GetIncludeDir_doc "string config.GetIncludeDir() (const)"
127#define GetOption_doc "bool config.GetOption(option:LcConfigOptionsEF) (const)"
128#define GetOptions_doc "LcConfigOptionsEF config.GetOptions() (const)"
129#define GetTabWidth_doc "int16 config.GetTabWidth() (const)"
131#define Log_doc "cfg.Log(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"
132#define ReadFile_doc "config.ReadFile(filename:string)"
133#define ReadString_doc "config.ReadString(str:string)"
134#define SetDefaultFormat_doc "config.SetDefaultFormat(format:LcConfigFormatE)"
135#define SetFloatPrecision_doc "config.SetFloatPrecision(digits:int16)"
136#define SetIncludeDir_doc "config.SetIncludeDir(include_dir:string)"
137#define SetIncludeFunc_doc "cfg.SetIncludeFunc(?fConfigIncludeData:LC_CBP=nil?)"
138#define SetOption_doc "config.SetOption(option:LcConfigOptionsEF, flag:bool)"
139#define SetOptions_doc "config.SetOptions(options:LcConfigOptionsEF)"
140#define SetSettingDeleteFunc_doc "cfg.SetSettingDeleteFunc(?fSettingDeleteData:LC_CBP=nil?)"
141#define SetTabWidth_doc "config.SetTabWidth(width:int16)"
142#define WriteFile_doc "config.WriteFile(filename:string)"
145#define LookupBool_doc "bool config.LookupBool(path:string) (const)"
146#define LookupFloat_doc "double config.LookupFloat(path:string) (const)"
147#define LookupInt_doc "int32 config.LookupInt(path:string) (const)"
148#define LookupInt64_doc "int64 config.LookupInt64(path:string) (const)"
149#define LookupString_doc "string config.LookupString(path:string) (const)"
150#define WriteString_doc "string cfg.WriteString() (const)"
680 if (retVal == NULL) {
694 if (retVal == NULL) {
726OT_METH_S ( LcConfigC, Create, LcConfigC_Create )
727OT_METH_C ( LcConfigC,
new, LcConfigC_new )
730OT_METH_O ( LcConfigC, GetNull, LcConfigC_GetNull )
731OT_METH_S ( LcConfigC, GetNull, LcConfigC_GetNull )
732OT_METH_O ( LcConfigC, HandleResolve, LcConfigC_HandleResolve )
733OT_METH_S ( LcConfigC, HandleResolve, LcConfigC_HandleResolve )
734OT_METH_O ( LcConfigC, Instances, LcConfigC_Instances )
735OT_METH_S ( LcConfigC, Instances, LcConfigC_Instances )
742OT_METH_O ( LcConfigC, Lookup, LcConfigC_Lookup )
743OT_METH_O ( LcConfigC, Next, LcConfigC_Next )
744OT_METH_O ( LcConfigC, Prev, LcConfigC_Prev )
745OT_METH_O ( LcConfigC, RootSetting, LcConfigC_RootSetting )
748OT_METH_O ( LcConfigC, Clear, LcConfigC_Clear )
749OT_METH_O ( LcConfigC, ErrorType, LcConfigC_ErrorType )
750OT_METH_O ( LcConfigC, GetDefaultFormat, LcConfigC_GetDefaultFormat )
751OT_METH_O ( LcConfigC, GetFloatPrecision, LcConfigC_GetFloatPrecision )
752OT_METH_O ( LcConfigC, GetIncludeDir, LcConfigC_GetIncludeDir )
753OT_METH_O ( LcConfigC, GetOption, LcConfigC_GetOption )
754OT_METH_O ( LcConfigC, GetOptions, LcConfigC_GetOptions )
755OT_METH_O ( LcConfigC, GetTabWidth, LcConfigC_GetTabWidth )
757OT_METH_O ( LcConfigC, Log, LcConfigC_Log )
758OT_METH_O ( LcConfigC, ReadFile, LcConfigC_ReadFile )
759OT_METH_O ( LcConfigC, ReadString, LcConfigC_ReadString )
760OT_METH_O ( LcConfigC, SetDefaultFormat, LcConfigC_SetDefaultFormat )
761OT_METH_O ( LcConfigC, SetFloatPrecision, LcConfigC_SetFloatPrecision )
762OT_METH_O ( LcConfigC, SetIncludeDir, LcConfigC_SetIncludeDir )
763OT_METH_O ( LcConfigC, SetIncludeFunc, LcConfigC_SetIncludeFunc )
764OT_METH_O ( LcConfigC, SetOption, LcConfigC_SetOption )
765OT_METH_O ( LcConfigC, SetOptions, LcConfigC_SetOptions )
766OT_METH_O ( LcConfigC, SetSettingDeleteFunc, LcConfigC_SetSettingDeleteFunc )
767OT_METH_O ( LcConfigC, SetTabWidth, LcConfigC_SetTabWidth )
768OT_METH_O ( LcConfigC, WriteFile, LcConfigC_WriteFile )
771OT_METH_O ( LcConfigC, LookupBool, LcConfigC_LookupBool )
772OT_METH_O ( LcConfigC, LookupFloat, LcConfigC_LookupFloat )
773OT_METH_O ( LcConfigC, LookupInt, LcConfigC_LookupInt )
774OT_METH_O ( LcConfigC, LookupInt64, LcConfigC_LookupInt64 )
775OT_METH_O ( LcConfigC, LookupString, LcConfigC_LookupString )
776OT_METH_O ( LcConfigC, WriteString, LcConfigC_WriteString )
#define SetIncludeFunc_doc
#define SetIncludeDir_doc
#define OT_SETUP_hdl_static_constr
#define SetSettingDeleteFunc_doc
#define HandleResolve_doc
#define SetFloatPrecision_doc
#define OT_SETUP_hdl_static
#define OT_SETUP_hdl_constr
static MK_TYP LcConfigCTT
#define GetFloatPrecision_doc
#define SetDefaultFormat_doc
#define GetDefaultFormat_doc
#define GetIncludeDir_doc
#define LcConfigC_MK_NULL
#define OT_retObj_SET_CFG(nat)
#define OT_NEW_Lc_enum_OBJ(typ, i)
#define OT_retObj_SET_CFS(nat)
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OT_ERROR_LNG_RETURN
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_I16(nat)
#define OT_CONSTRUCTOR_POST(x)
#define OT_METH_S(c, s, f)
#define OT_retObj_SET_DBL(nat)
#define OT_retObj_SET_I64(nat)
#define OT_retObj_CONSTR(mng)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_SET_I32(nat)
#define OT_METH_O(c, s, f)
#define OT_SETUP_CONSTRUCTOR_ARGS(min, max, d)
#define OT_CHECK_NI2(val)
#define OT_OBJECT_DELETE_HARD(obj)
#define OT_retObj_SET_STR(nat)
#define OT_ERROR_CONSTRUCTOR(clazz)
#define OT_CHECK_OPTIONAL(val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define OT_METH_C(c, s, f)
#define OT_CHECK_STRN(val)
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
#define LcConfigInstances()
static LC_CFG LcConfigPrev(LC_CFG const cfg)
get previous instance from linked-list of LcConfigS type
static LC_CFG LcConfigNext(LC_CFG const cfg)
get next instance from linked-list of LcConfigS type
static LC_CFG LcConfigGetNull(void)
Null-Slot - return a LcConfigC typed NULL instance …
#define LcConfigHandleResolve(...)
#define LcConfigC_T
class as MkTypeDefS-class-type (cast from LcConfigC_TT into MkTypeS) …
__thread MK_TYP LcConfigC_TT
class as MkTypeDefS-class-type …
static enum LcErrorTypeE LcConfigErrorType(LC_CFGN config)
This function, which is implemented as a macro, returns the type of error that occurred during the la...
static enum LcConfigFormatE LcConfigGetDefaultFormat(LC_CFGN config)
These functions, which are implemented as macros, get and set the default external format for setting...
static MK_I16 LcConfigGetTabWidth(LC_CFGN config)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
static MK_BOOL LcConfigGetOption(LC_CFGN config, enum LcConfigOptionsEF option)
Since v1.7 These functions get and set the given option of the configuration config …
static MK_I16 LcConfigGetFloatPrecision(LC_CFGN config)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
static enum LcConfigOptionsEF LcConfigGetOptions(LC_CFGN config)
These functions get and set the options for the configuration config …
static MK_STRN LcConfigGetIncludeDir(LC_CFGN config)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
static enum MkErrorE LcConfigLookupFloat(LC_CFGN config, MK_STRN path, MK_DBL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupBool(LC_CFGN config, MK_STRN path, MK_BOOL *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupString(LC_CFGN config, MK_STRN path, MK_STRN *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupInt(LC_CFGN config, MK_STRN path, MK_I32 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static enum MkErrorE LcConfigLookupInt64(LC_CFGN config, MK_STRN path, MK_I64 *value_out)
These functions look up the value of the setting in the configuration config specified by the path pa...
static LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …
#define LcConfigWriteString(...)
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
static enum MkErrorE LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...
static enum MkErrorE LcConfigReadString(LC_CFG config, MK_STRN str)
This function reads and parses a configuration from the string str into the configuration object conf...
static void LcConfigSetTabWidth(LC_CFG config, MK_I16 width)
These functions, which are implemented as macros, get and set the tab width for the configuration con...
static void LcConfigSetFloatPrecision(LC_CFG config, MK_I16 digits)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
#define LcConfigSetSettingDeleteFunc(...)
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …
static void LcConfigSetOption(LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag)
Since v1.7 These functions get and set the given option of the configuration config …
static void LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
#define LcConfigSetIncludeFunc(...)
static void LcConfigSetDefaultFormat(LC_CFG config, enum LcConfigFormatE format)
These functions, which are implemented as macros, get and set the default external format for setting...
static LC_CFG LcConfigCreate(MK_TYP type, config_t *nat)
create a LcConfigC instance …
LcConfigFormatE
set the format of a LcSettingC …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
static bool MkSysStringIsNULL(MK_STRN str)
static MK_I32 MkRuntimeDebugGet(void)
#define OT_CHECK_NIH(val)
#define OT_CHECK_CALLABLE(val)
#define OT_CLEANUP_CALLABLE(val)
#define OT_CHECK_ENUM(ename, val)
#define OT_SETUP_CALLABLE(val)
#define OT_CHECK_OBJN(val, nullB)
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …