11#define META_FILE_NAME "LcSettingC_atl.c"
15#define OT_CLASS alcrt->AtlLcSettingC
16#define OT_NULL alcrt->AtlLcSettingC_MK_NULL
17#define OT_CLASS_NAME "LcSettingC"
19#define SELF2HDL(O) LcCfs(VAL2MNG(O))
47#define OT_SETUP_hdl SetupHdlFromMetaData_2(LC_CFS)
48#define OT_SETUP_hdl__null_allow SetupHdlFromMetaData__null_allow_2(LC_CFS)
49#define OT_SETUP_hdl_destr SetupHdlFromMetaData__null_allow_2(LC_CFS)
50#define OT_SETUP_hdl_constr SetupHdlConstr(LcSettingC)
51#define OT_SETUP_hdl_static_constr OT_SETUP_hdl_static
52#define OT_SETUP_hdl_static SetupHdlStatic(LcSettingC)
54#define OT_retObj_CONSTR(x) OT_retObj_SET(AtomInit(OT_SELF,LcSettingC_X2obj(x),alcrt))
59 if (LcSettingCTT == NULL) LcSettingCTT = LcSettingSTT; \
62 if (LcSettingCTT->selfCreate == NS(LcSettingC_selfCreate)) return MK_OK; \
65 LcSettingCTT->selfCreate = NS(LcSettingC_selfCreate); \
66 LcSettingCTT->selfDelete = NS(LcSettingC_selfDelete); \
67 LcSettingCTT->selfUnlink = NS(LcSettingC_selfUnlink); \
70 OT_CLASS = AltClassDef(LcSettingCTT,&alcrt->AtlLcSettingC_NS); \
71 if (OT_CLASS == NULL) goto error; \
72 OT_REF_INCR(OT_CLASS); \
75 check_LNG(AtlUnknownSetup (NS(sOtClassDef),alcrt)) goto error; \
78 check_LNG(AtlUnknownSetup (NS(sInstanceDef),alcrt)) goto error; \
81 RL_init(2, recompile, RL_T(0,RecompileN)); RL_O(1,OT_CLASS) ; \
82 int retI = RL_EvalEx(0); \
83 if (retI != TCL_OK) return retI; \
86 OT_NULL = AtomCreateNULL(OT_CLASS, "::LcSettingC::MK_NULL", (MK_PTR)alcrt); \
87 if (OT_NULL == NULL) goto error; \
94#define GetNull_doc "LcSettingC [LcSettingC::GetNull]"
95#define HandleResolve_doc "LcSettingC [LcSettingC::HandleResolve netHdl:MK_HDL]"
96#define Instances_doc "LcSettingC [LcSettingC::Instances]"
99#define Add_doc "LcSettingC [LcSettingC::Add $parent name:string __type:LcConfigTypeE]"
102#define AddIfNotExists_doc "LcSettingC [LcSettingC::AddIfNotExists $setting name:string cfgtype:LcConfigTypeE]"
103#define GetConfig_doc "LcConfigC [LcSettingC::GetConfig $setting] (const)"
104#define GetElem_doc "LcSettingC [LcSettingC::GetElem $setting idx:int32] (const)"
105#define GetMember_doc "LcSettingC [LcSettingC::GetMember $setting name:string] (const)"
106#define Lookup_doc "LcSettingC [LcSettingC::Lookup $setting path:string]"
107#define LookupAll_doc "MkBufferListC [LcSettingC::LookupAll $setting] (const)"
108#define Next_doc "LcSettingC [LcSettingC::Next $cfs]"
109#define Parent_doc "LcSettingC [LcSettingC::Parent $setting] (const)"
110#define Prev_doc "LcSettingC [LcSettingC::Prev $cfs]"
111#define SetBoolElem_doc "LcSettingC [LcSettingC::SetBoolElem $setting idx:int32 value:int32]"
112#define SetFloatElem_doc "LcSettingC [LcSettingC::SetFloatElem $setting idx:int32 value:double]"
113#define SetInt64Elem_doc "LcSettingC [LcSettingC::SetInt64Elem $setting idx:int32 value:int64]"
114#define SetIntElem_doc "LcSettingC [LcSettingC::SetIntElem $setting idx:int32 value:int32]"
115#define SetStringElem_doc "LcSettingC [LcSettingC::SetStringElem $setting idx:int32 value:string]"
118#define Exists_doc "bool [LcSettingC::Exists $setting name:string]"
119#define GetBool_doc "bool [LcSettingC::GetBool $setting] (const)"
120#define GetBoolElem_doc "bool [LcSettingC::GetBoolElem $setting idx:int32] (const)"
121#define GetFloat_doc "double [LcSettingC::GetFloat $setting] (const)"
122#define GetFloatElem_doc "double [LcSettingC::GetFloatElem $setting idx:int32] (const)"
123#define GetFormat_doc "LcConfigFormatE [LcSettingC::GetFormat $setting] (const)"
124#define GetInt_doc "int32 [LcSettingC::GetInt $setting] (const)"
125#define GetInt64_doc "int64 [LcSettingC::GetInt64 $setting] (const)"
126#define GetInt64Elem_doc "int64 [LcSettingC::GetInt64Elem $setting idx:int32] (const)"
127#define GetIntElem_doc "int32 [LcSettingC::GetIntElem $setting idx:int32] (const)"
128#define GetString_doc "string [LcSettingC::GetString $setting] (const)"
129#define GetStringElem_doc "string [LcSettingC::GetStringElem $setting idx:int32] (const)"
131#define Index_doc "int32 [LcSettingC::Index $setting] (const)"
132#define IsAggregate_doc "bool [LcSettingC::IsAggregate $setting] (const)"
133#define IsArray_doc "bool [LcSettingC::IsArray $setting] (const)"
134#define IsGroup_doc "bool [LcSettingC::IsGroup $setting] (const)"
135#define IsList_doc "bool [LcSettingC::IsList $setting] (const)"
136#define IsNumber_doc "bool [LcSettingC::IsNumber $setting] (const)"
137#define IsRoot_doc "bool [LcSettingC::IsRoot $setting] (const)"
138#define IsScalar_doc "bool [LcSettingC::IsScalar $setting] (const)"
139#define Length_doc "int32 [LcSettingC::Length $setting] (const)"
141#define Name_doc "string [LcSettingC::Name $setting] (const)"
142#define Remove_doc "LcSettingC::Remove $parent name:string"
143#define RemoveElem_doc "LcSettingC::RemoveElem $parent idx:int32"
144#define SetBool_doc "LcSettingC::SetBool $setting value:bool"
145#define SetFloat_doc "LcSettingC::SetFloat $setting value:double"
146#define SetFormat_doc "LcSettingC::SetFormat $setting format:LcConfigFormatE"
147#define SetInt_doc "LcSettingC::SetInt $setting value:int32"
148#define SetInt64_doc "LcSettingC::SetInt64 $setting value:int64"
149#define SetString_doc "LcSettingC::SetString $setting value:string"
150#define SourceFile_doc "string [LcSettingC::SourceFile $setting] (const)"
151#define SourceLine_doc "int32 [LcSettingC::SourceLine $setting] (const)"
152#define Type_doc "LcConfigTypeE [LcSettingC::Type $setting] (const)"
155#define LookupBool_doc "bool [LcSettingC::LookupBool $setting name:string] (const)"
156#define LookupFloat_doc "double [LcSettingC::LookupFloat $setting name:string] (const)"
157#define LookupInt_doc "int32 [LcSettingC::LookupInt $setting name:string] (const)"
158#define LookupInt64_doc "int64 [LcSettingC::LookupInt64 $setting name:string] (const)"
159#define LookupString_doc "string [LcSettingC::LookupString $setting name:string] (const)"
298 if (retVal == NULL) {
318 if (retVal == NULL) {
602 if (retVal == NULL) {
748 if (retVal == NULL) {
910 if (retVal == NULL) {
932 if (retVal == NULL) {
954 if (retVal == NULL) {
976 if (retVal == NULL) {
998 if (retVal == NULL) {
1127 if (retVal == NULL) {
1166 {
"::LcSettingC::GetNull" ,
NS(LcSettingC_GetNull) },
1167 {
"::LcSettingC::HandleResolve" ,
NS(LcSettingC_HandleResolve) },
1168 {
"::LcSettingC::Instances" ,
NS(LcSettingC_Instances) },
1180 {
"::LcSettingC::Add" ,
NS(LcSettingC_Add) },
1183 {
"::LcSettingC::AddIfNotExists" ,
NS(LcSettingC_AddIfNotExists) },
1184 {
"::LcSettingC::GetConfig" ,
NS(LcSettingC_GetConfig) },
1185 {
"::LcSettingC::GetElem" ,
NS(LcSettingC_GetElem) },
1186 {
"::LcSettingC::GetMember" ,
NS(LcSettingC_GetMember) },
1187 {
"::LcSettingC::Lookup" ,
NS(LcSettingC_Lookup) },
1188 {
"::LcSettingC::LookupAll" ,
NS(LcSettingC_LookupAll) },
1189 {
"::LcSettingC::Next" ,
NS(LcSettingC_Next) },
1190 {
"::LcSettingC::Parent" ,
NS(LcSettingC_Parent) },
1191 {
"::LcSettingC::Prev" ,
NS(LcSettingC_Prev) },
1192 {
"::LcSettingC::SetBoolElem" ,
NS(LcSettingC_SetBoolElem) },
1193 {
"::LcSettingC::SetFloatElem" ,
NS(LcSettingC_SetFloatElem) },
1194 {
"::LcSettingC::SetInt64Elem" ,
NS(LcSettingC_SetInt64Elem) },
1195 {
"::LcSettingC::SetIntElem" ,
NS(LcSettingC_SetIntElem) },
1196 {
"::LcSettingC::SetStringElem" ,
NS(LcSettingC_SetStringElem) },
1199 {
"::LcSettingC::Exists" ,
NS(LcSettingC_Exists) },
1200 {
"::LcSettingC::GetBool" ,
NS(LcSettingC_GetBool) },
1201 {
"::LcSettingC::GetBoolElem" ,
NS(LcSettingC_GetBoolElem) },
1202 {
"::LcSettingC::GetFloat" ,
NS(LcSettingC_GetFloat) },
1203 {
"::LcSettingC::GetFloatElem" ,
NS(LcSettingC_GetFloatElem) },
1204 {
"::LcSettingC::GetFormat" ,
NS(LcSettingC_GetFormat) },
1205 {
"::LcSettingC::GetInt" ,
NS(LcSettingC_GetInt) },
1206 {
"::LcSettingC::GetInt64" ,
NS(LcSettingC_GetInt64) },
1207 {
"::LcSettingC::GetInt64Elem" ,
NS(LcSettingC_GetInt64Elem) },
1208 {
"::LcSettingC::GetIntElem" ,
NS(LcSettingC_GetIntElem) },
1209 {
"::LcSettingC::GetString" ,
NS(LcSettingC_GetString) },
1210 {
"::LcSettingC::GetStringElem" ,
NS(LcSettingC_GetStringElem) },
1212 {
"::LcSettingC::Index" ,
NS(LcSettingC_Index) },
1213 {
"::LcSettingC::IsAggregate" ,
NS(LcSettingC_IsAggregate) },
1214 {
"::LcSettingC::IsArray" ,
NS(LcSettingC_IsArray) },
1215 {
"::LcSettingC::IsGroup" ,
NS(LcSettingC_IsGroup) },
1216 {
"::LcSettingC::IsList" ,
NS(LcSettingC_IsList) },
1217 {
"::LcSettingC::IsNumber" ,
NS(LcSettingC_IsNumber) },
1218 {
"::LcSettingC::IsRoot" ,
NS(LcSettingC_IsRoot) },
1219 {
"::LcSettingC::IsScalar" ,
NS(LcSettingC_IsScalar) },
1220 {
"::LcSettingC::Length" ,
NS(LcSettingC_Length) },
1222 {
"::LcSettingC::Name" ,
NS(LcSettingC_Name) },
1223 {
"::LcSettingC::Remove" ,
NS(LcSettingC_Remove) },
1224 {
"::LcSettingC::RemoveElem" ,
NS(LcSettingC_RemoveElem) },
1225 {
"::LcSettingC::SetBool" ,
NS(LcSettingC_SetBool) },
1226 {
"::LcSettingC::SetFloat" ,
NS(LcSettingC_SetFloat) },
1227 {
"::LcSettingC::SetFormat" ,
NS(LcSettingC_SetFormat) },
1228 {
"::LcSettingC::SetInt" ,
NS(LcSettingC_SetInt) },
1229 {
"::LcSettingC::SetInt64" ,
NS(LcSettingC_SetInt64) },
1230 {
"::LcSettingC::SetString" ,
NS(LcSettingC_SetString) },
1231 {
"::LcSettingC::SourceFile" ,
NS(LcSettingC_SourceFile) },
1232 {
"::LcSettingC::SourceLine" ,
NS(LcSettingC_SourceLine) },
1233 {
"::LcSettingC::Type" ,
NS(LcSettingC_Type) },
1236 {
"::LcSettingC::LookupBool" ,
NS(LcSettingC_LookupBool) },
1237 {
"::LcSettingC::LookupFloat" ,
NS(LcSettingC_LookupFloat) },
1238 {
"::LcSettingC::LookupInt" ,
NS(LcSettingC_LookupInt) },
1239 {
"::LcSettingC::LookupInt64" ,
NS(LcSettingC_LookupInt64) },
1240 {
"::LcSettingC::LookupString" ,
NS(LcSettingC_LookupString) },
#define GetStringElem_doc
#define SetStringElem_doc
#define HandleResolve_doc
#define OT_SETUP_hdl_static
#define AddIfNotExists_doc
#define OT_retObj_SET_CFG(nat)
#define OT_retObj_SET_CFS(nat)
#define OT_NEW_Lc_enum_OBJ(typ, val)
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NIH(val)
#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_CHECK_NI8(val)
#define OT_retObj_SET_Error
#define OT_CHECK_NF8(val)
#define OT_ERROR_CONSTRUCTOR(class)
#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_retObj_SET_BFL(nat)
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_SET_STR(nat)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define OT_ERROR_SOFT_CONSTRUCTOR(class)
#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 …
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,...
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …