10#define META_FILE_NAME "LcSettingC_rb.c"
14#define OT_CLASS NS(LcSettingC)
15#define OT_CLASS_NAME "LcSettingC"
17#define OT_LNG2META(O) LcCfs(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(LcSettingC);
88#define OT_SETUP_hdl__null_allow OT_SETUP_hdl_tmpl__null_allow(LcSettingC);
89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 LcSettingC_type hdl = (LcSettingC_type) &MkERROR;
92#define OT_SETUP_hdl_destr OT_SETUP_hdl_tmpl__null_allow(LcSettingC);
93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = LcSettingC##_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 GetNull_doc "LcSettingC LcSettingC.GetNull()"
108#define HandleResolve_doc "LcSettingC LcSettingC.HandleResolve(netHdl:MK_HDL)"
109#define Instances_doc "LcSettingC LcSettingC.Instances()"
112#define Add_doc "LcSettingC parent.Add(name:string, __type:LcConfigTypeE)"
115#define AddIfNotExists_doc "LcSettingC setting.AddIfNotExists(name:string, cfgtype:LcConfigTypeE)"
116#define GetConfig_doc "LcConfigC setting.GetConfig() (const)"
117#define GetElem_doc "LcSettingC setting.GetElem(idx:int32) (const)"
118#define GetMember_doc "LcSettingC setting.GetMember(name:string) (const)"
119#define Lookup_doc "LcSettingC setting.Lookup(path:string)"
120#define LookupAll_doc "MkBufferListC setting.LookupAll() (const)"
121#define Next_doc "LcSettingC cfs.Next()"
122#define Parent_doc "LcSettingC setting.Parent() (const)"
123#define Prev_doc "LcSettingC cfs.Prev()"
124#define SetBoolElem_doc "LcSettingC setting.SetBoolElem(idx:int32, value:int32)"
125#define SetFloatElem_doc "LcSettingC setting.SetFloatElem(idx:int32, value:double)"
126#define SetInt64Elem_doc "LcSettingC setting.SetInt64Elem(idx:int32, value:int64)"
127#define SetIntElem_doc "LcSettingC setting.SetIntElem(idx:int32, value:int32)"
128#define SetStringElem_doc "LcSettingC setting.SetStringElem(idx:int32, value:string)"
131#define Exists_doc "bool setting.Exists(name:string)"
132#define GetBool_doc "bool setting.GetBool() (const)"
133#define GetBoolElem_doc "bool setting.GetBoolElem(idx:int32) (const)"
134#define GetFloat_doc "double setting.GetFloat() (const)"
135#define GetFloatElem_doc "double setting.GetFloatElem(idx:int32) (const)"
136#define GetFormat_doc "LcConfigFormatE setting.GetFormat() (const)"
137#define GetInt_doc "int32 setting.GetInt() (const)"
138#define GetInt64_doc "int64 setting.GetInt64() (const)"
139#define GetInt64Elem_doc "int64 setting.GetInt64Elem(idx:int32) (const)"
140#define GetIntElem_doc "int32 setting.GetIntElem(idx:int32) (const)"
141#define GetString_doc "string setting.GetString() (const)"
142#define GetStringElem_doc "string setting.GetStringElem(idx:int32) (const)"
144#define Index_doc "int32 setting.Index() (const)"
145#define IsAggregate_doc "bool setting.IsAggregate() (const)"
146#define IsArray_doc "bool setting.IsArray() (const)"
147#define IsGroup_doc "bool setting.IsGroup() (const)"
148#define IsList_doc "bool setting.IsList() (const)"
149#define IsNumber_doc "bool setting.IsNumber() (const)"
150#define IsRoot_doc "bool setting.IsRoot() (const)"
151#define IsScalar_doc "bool setting.IsScalar() (const)"
152#define Length_doc "int32 setting.Length() (const)"
154#define Name_doc "string setting.Name() (const)"
155#define Remove_doc "parent.Remove(name:string)"
156#define RemoveElem_doc "parent.RemoveElem(idx:int32)"
157#define SetBool_doc "setting.SetBool(value:bool)"
158#define SetFloat_doc "setting.SetFloat(value:double)"
159#define SetFormat_doc "setting.SetFormat(format:LcConfigFormatE)"
160#define SetInt_doc "setting.SetInt(value:int32)"
161#define SetInt64_doc "setting.SetInt64(value:int64)"
162#define SetString_doc "setting.SetString(value:string)"
163#define SourceFile_doc "string setting.SourceFile() (const)"
164#define SourceLine_doc "int32 setting.SourceLine() (const)"
165#define Type_doc "LcConfigTypeE setting.Type() (const)"
168#define LookupBool_doc "bool setting.LookupBool(name:string) (const)"
169#define LookupFloat_doc "double setting.LookupFloat(name:string) (const)"
170#define LookupInt_doc "int32 setting.LookupInt(name:string) (const)"
171#define LookupInt64_doc "int64 setting.LookupInt64(name:string) (const)"
172#define LookupString_doc "string setting.LookupString(name:string) (const)"
290 if (retVal == NULL) {
306 if (retVal == NULL) {
532 if (retVal == NULL) {
653 if (retVal == NULL) {
784 if (retVal == NULL) {
802 if (retVal == NULL) {
820 if (retVal == NULL) {
838 if (retVal == NULL) {
856 if (retVal == NULL) {
963 if (retVal == NULL) {
1007OT_METH_O ( LcSettingC, GetNull, LcSettingC_GetNull )
1008OT_METH_S ( LcSettingC, GetNull, LcSettingC_GetNull )
1009OT_METH_O ( LcSettingC, HandleResolve, LcSettingC_HandleResolve )
1010OT_METH_S ( LcSettingC, HandleResolve, LcSettingC_HandleResolve )
1011OT_METH_O ( LcSettingC, Instances, LcSettingC_Instances )
1012OT_METH_S ( LcSettingC, Instances, LcSettingC_Instances )
1019OT_METH_O ( LcSettingC, Add, LcSettingC_Add )
1022OT_METH_O ( LcSettingC, AddIfNotExists, LcSettingC_AddIfNotExists )
1023OT_METH_O ( LcSettingC, GetConfig, LcSettingC_GetConfig )
1024OT_METH_O ( LcSettingC, GetElem, LcSettingC_GetElem )
1025OT_METH_O ( LcSettingC, GetMember, LcSettingC_GetMember )
1026OT_METH_O ( LcSettingC, Lookup, LcSettingC_Lookup )
1027OT_METH_O ( LcSettingC, LookupAll, LcSettingC_LookupAll )
1028OT_METH_O ( LcSettingC, Next, LcSettingC_Next )
1029OT_METH_O ( LcSettingC, Parent, LcSettingC_Parent )
1030OT_METH_O ( LcSettingC, Prev, LcSettingC_Prev )
1031OT_METH_O ( LcSettingC, SetBoolElem, LcSettingC_SetBoolElem )
1032OT_METH_O ( LcSettingC, SetFloatElem, LcSettingC_SetFloatElem )
1033OT_METH_O ( LcSettingC, SetInt64Elem, LcSettingC_SetInt64Elem )
1034OT_METH_O ( LcSettingC, SetIntElem, LcSettingC_SetIntElem )
1035OT_METH_O ( LcSettingC, SetStringElem, LcSettingC_SetStringElem )
1038OT_METH_O ( LcSettingC, Exists, LcSettingC_Exists )
1039OT_METH_O ( LcSettingC, GetBool, LcSettingC_GetBool )
1040OT_METH_O ( LcSettingC, GetBoolElem, LcSettingC_GetBoolElem )
1041OT_METH_O ( LcSettingC, GetFloat, LcSettingC_GetFloat )
1042OT_METH_O ( LcSettingC, GetFloatElem, LcSettingC_GetFloatElem )
1043OT_METH_O ( LcSettingC, GetFormat, LcSettingC_GetFormat )
1044OT_METH_O ( LcSettingC, GetInt, LcSettingC_GetInt )
1045OT_METH_O ( LcSettingC, GetInt64, LcSettingC_GetInt64 )
1046OT_METH_O ( LcSettingC, GetInt64Elem, LcSettingC_GetInt64Elem )
1047OT_METH_O ( LcSettingC, GetIntElem, LcSettingC_GetIntElem )
1048OT_METH_O ( LcSettingC, GetString, LcSettingC_GetString )
1049OT_METH_O ( LcSettingC, GetStringElem, LcSettingC_GetStringElem )
1051OT_METH_O ( LcSettingC, Index, LcSettingC_Index )
1052OT_METH_O ( LcSettingC, IsAggregate, LcSettingC_IsAggregate )
1053OT_METH_O ( LcSettingC, IsArray, LcSettingC_IsArray )
1054OT_METH_O ( LcSettingC, IsGroup, LcSettingC_IsGroup )
1055OT_METH_O ( LcSettingC, IsList, LcSettingC_IsList )
1056OT_METH_O ( LcSettingC, IsNumber, LcSettingC_IsNumber )
1057OT_METH_O ( LcSettingC, IsRoot, LcSettingC_IsRoot )
1058OT_METH_O ( LcSettingC, IsScalar, LcSettingC_IsScalar )
1059OT_METH_O ( LcSettingC, Length, LcSettingC_Length )
1061OT_METH_O ( LcSettingC, Name, LcSettingC_Name )
1062OT_METH_O ( LcSettingC, Remove, LcSettingC_Remove )
1063OT_METH_O ( LcSettingC, RemoveElem, LcSettingC_RemoveElem )
1064OT_METH_O ( LcSettingC, SetBool, LcSettingC_SetBool )
1065OT_METH_O ( LcSettingC, SetFloat, LcSettingC_SetFloat )
1066OT_METH_O ( LcSettingC, SetFormat, LcSettingC_SetFormat )
1067OT_METH_O ( LcSettingC, SetInt, LcSettingC_SetInt )
1068OT_METH_O ( LcSettingC, SetInt64, LcSettingC_SetInt64 )
1069OT_METH_O ( LcSettingC, SetString, LcSettingC_SetString )
1070OT_METH_O ( LcSettingC, SourceFile, LcSettingC_SourceFile )
1071OT_METH_O ( LcSettingC, SourceLine, LcSettingC_SourceLine )
1072OT_METH_O ( LcSettingC, Type, LcSettingC_Type )
1075OT_METH_O ( LcSettingC, LookupBool, LcSettingC_LookupBool )
1076OT_METH_O ( LcSettingC, LookupFloat, LcSettingC_LookupFloat )
1077OT_METH_O ( LcSettingC, LookupInt, LcSettingC_LookupInt )
1078OT_METH_O ( LcSettingC, LookupInt64, LcSettingC_LookupInt64 )
1079OT_METH_O ( LcSettingC, LookupString, LcSettingC_LookupString )
#define GetStringElem_doc
#define SetStringElem_doc
#define HandleResolve_doc
#define OT_SETUP_hdl_static
static MK_TYP LcSettingCTT
#define AddIfNotExists_doc
#define OT_retObj_SET_CFG(nat)
#define OT_NEW_Lc_enum_OBJ(typ, i)
#define LcSettingC_MK_NULL
#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_ERROR_SOFT_CONSTRUCTOR(clazz)
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OT_ERROR_LNG_RETURN
#define OT_CHECK_NI4(val)
#define OT_CHECK_NI8(val)
#define OT_CHECK_NF8(val)
#define OT_METH_S(c, s, f)
#define OT_retObj_SET_DBL(nat)
#define OT_retObj_SET_I64(nat)
#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_retObj_SET_BFL(nat)
#define OT_OBJECT_DELETE_HARD(obj)
#define OT_retObj_SET_STR(nat)
#define OT_ERROR_CONSTRUCTOR(clazz)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define OT_CHECK_STRN(val)
LcConfigFormatE
set the format of a LcSettingC …
LcConfigTypeE
define the data-type of a LcSettingC …
#define LcSettingHandleResolve(...)
static LC_CFS LcSettingPrev(LC_CFS const cfs)
get previous instance from linked-list of LcSettingS type
static LC_CFS LcSettingNext(LC_CFS const cfs)
get next instance from linked-list of LcSettingS type
#define LcSettingInstances()
static LC_CFS LcSettingGetNull(void)
Null-Slot - return a LcSettingC typed NULL instance …
__thread MK_TYP LcSettingC_TT
class as MkTypeDefS-class-type …
#define LcSettingC_T
class as MkTypeDefS-class-type (cast from LcSettingC_TT into MkTypeS) …
static MK_STRN LcSettingGetString(LC_CFSN setting)
These functions return the value of the given setting …
static LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
static LC_CFS LcSettingGetElem(LC_CFSN setting, MK_I32 idx)
This function fetches the element at the given index index in the setting setting,...
static MK_BOOL LcSettingGetBool(LC_CFSN setting)
These functions return the value of the given setting …
static MK_DBL LcSettingGetFloat(LC_CFSN setting)
These functions return the value of the given setting …
static MK_BOOL LcSettingGetBoolElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64Elem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static LC_CFS LcSettingGetMember(LC_CFSN setting, MK_STRN name)
This function fetches the child setting named name from the group setting …
static enum LcConfigFormatE LcSettingGetFormat(LC_CFSN setting)
These functions get and set the external format for the setting setting …
static MK_I32 LcSettingGetInt(LC_CFSN setting)
These functions return the value of the given setting …
static MK_I32 LcSettingGetIntElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64(LC_CFSN setting)
These functions return the value of the given setting …
static MK_STRN LcSettingGetStringElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_DBL LcSettingGetFloatElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_BOOL LcSettingIsArray(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsNumber(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsRoot(LC_CFSN setting)
This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwis...
static MK_BOOL LcSettingIsList(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsAggregate(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsGroup(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsScalar(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static enum MkErrorE LcSettingLookupString(LC_CFSN setting, MK_STRN name, MK_STRN *value_out)
These functions look up the value of the child setting named name of the setting setting …
static LC_CFS LcSettingLookup(LC_CFS setting, MK_STRN path)
This function locates a setting by a path path relative to the setting setting …
static enum MkErrorE LcSettingLookupBool(LC_CFSN setting, MK_STRN name, MK_BOOL *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt(LC_CFSN setting, MK_STRN name, MK_I32 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt64(LC_CFSN setting, MK_STRN name, MK_I64 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupFloat(LC_CFSN setting, MK_STRN name, MK_DBL *value_out)
These functions look up the value of the child setting named name of the setting setting …
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...
static LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
static LC_CFS LcSettingSetFloatElem(LC_CFS setting, MK_I32 idx, MK_DBL value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetInt64(LC_CFS setting, MK_I64 value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetBool(LC_CFS setting, MK_BOOL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetIntElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetString(LC_CFS setting, MK_STRN value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetFormat(LC_CFS setting, enum LcConfigFormatE format)
These functions get and set the external format for the setting setting …
static LC_CFS LcSettingSetBoolElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetFloat(LC_CFS setting, MK_DBL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetStringElem(LC_CFS setting, MK_I32 idx, MK_STRN value)
These functions set the value at the specified index index in the setting setting to value …
static LC_CFS LcSettingSetInt64Elem(LC_CFS setting, MK_I32 idx, MK_I64 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetInt(LC_CFS setting, MK_I32 value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingAdd(LC_CFS parent, MK_STRN name, enum LcConfigTypeE __type)
This function adds a new child setting or element to the setting parent, which must be a group,...
#define OT_CHECK_NIH(val)
#define OT_CHECK_ENUM(ename, val)
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …