theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_rb.c
Go to the documentation of this file.
1
9/* LABEL-START */
10#define META_FILE_NAME "LcConfigC_rb.c"
11
13
14#define OT_CLASS NS(LcConfigC)
15#define OT_CLASS_NAME "LcConfigC"
16
17#define OT_LNG2META(O) LcCfg(VAL2MNG(O))
18
20
21// new Class type object
22static MK_TYP LcConfigCTT = NULL;
24
25// GS marker in "Data_Wrap_Struct"
26static void NS(sMark) (MK_PTR);
27
28// ruby datatype of the wrapped struct
29static rb_data_type_t NS(LcConfigC_T) = {
30 "LcConfigC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};
41
42// >>THIS<< is a Phase-1-CONSTRUCTOR: a constructor which create the SELF object
43// A Phase-2-CONSTRUCTOR is a constructor which configure an already existing object
44// DO: create a new SELF and link this SELF with the MQ-Object "mng"
45// clazz is the toplevel "subclass" or "LcConfigC"
46mk_inline OT_OBJ_T NS(LNG_CONSTR) (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE* objv) {
47 return MK(AtomObjCrt)(clazz,&NS(LcConfigC_T),mng,objc,objv);
48}
49// MQ: ObjNew feature: called to return a new or an already existing RUBY-SELF-Object
50// -> moved to: msgque_rb.h
51// OT_OBJ_T NS(LcConfigC_ObjNew) (MK_CFG hdl) {
52// return MK(AtomObjNew) (LcConfigC_X2obj(hdl));
53// }
54// MQ: ObjNew feature: selfCreate will be called from "ObjNew->MkSelfNew" if MkObj need a SELF pointer
55static MK_PTR NS(LcConfigC_selfCreate) (MK_RT_ARGS MK_OBJ obj, MK_PTR envP) {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
59// MQ: called on instance-destruction for a "selfCreate" instance → goal: destroy the SELF
60static void NS(LcConfigC_selfDelete) (MK_RT_ARGS MK_PTR ptr, MK_PTR envP) {
62}
63// MQ: called to destroy link from SELF to META
64static void NS(LcConfigC_selfUnlink) (MK_RT_ARGS MK_PTR ptr, MK_PTR envP) {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}
68// initialize the RUBY and MO class specific object
69#define S_INIT NS(sInit)(MK_RT_CALL_ONLY)
70static void NS(sInit)(MK_RT_ARGS_ONLY) {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-LcConfigC-Type
73 LcConfigCTT->selfCreate = NS(LcConfigC_selfCreate);
74 LcConfigCTT->selfDelete = NS(LcConfigC_selfDelete);
75 LcConfigCTT->selfUnlink = NS(LcConfigC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "LcConfigC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(LcConfigC_T), MK_NULL);
83 NS(LcConfigC_MK_NULL) = nullO;
85}
86
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
96
97#if !defined(SetupRtFromObj_X)
98 #define SetupRtFromObj_X(hdl) AllRtSetup_X(hdl)
99 #define SetupRtFromObj_XN(hdl) AllRtSetup_XN(hdl)
100#endif
101
102/* LABEL-END */
103
104// BEGIN-DOC - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
105
106// doc-key: LcConfigC,LcConfig,sCc,func
107#define Create_doc "LcConfigC LcConfigC.Create()"
108#define new_doc "LcConfigC LcConfigC.new()"
109
110// doc-key: LcConfigC,LcConfig,sc_,func
111#define GetNull_doc "LcConfigC LcConfigC.GetNull()"
112#define HandleResolve_doc "LcConfigC LcConfigC.HandleResolve(netHdl:MK_HDL)"
113#define Instances_doc "LcConfigC LcConfigC.Instances()"
114
115// doc-key: LcConfigC,LcConfig,oc_,func
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)"
120
121// doc-key: LcConfigC,LcConfig,om_,func
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)"
130// skip class-overload: HandleGet → MkObjectHandleGet
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)"
143
144// doc-key: LcConfigC,LcConfig,omo,func
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)"
151
152// END-DOC - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
153
154/*****************************************************************************/
155/* */
156/* O B J E C T */
157/* */
158/*****************************************************************************/
159
160// BEGIN-LcConfigC - created by 'rb_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
161
165
166// doc-key: LcConfigC,LcConfigC-Class-Export,sc_
167
169static OT_ProcRet NS(LcConfigC_HandleResolve) (OtClass_ARGS) {
172 MK_HDL netHdl = 0;
175 LC_CFG retVal = LcConfigHandleResolve (netHdl);
176 OT_retObj_SET_CFG(retVal);
177 end: MK_UNUSED /* LONG JUMP on error */
179}
180
181// doc-key: LcConfigC,LcConfigC-Class-Export,om_
182
183// skip on class-overload: LcConfigHandleGet → MkObjectHandleGet
185static OT_ProcRet NS(LcConfigC_HandleGet) (LcConfigC_ARGS) {OT_ERROR_LNG_RETURN;}
186
188// LcConfigC_Class_RB_API
189
193
194// doc-key: LcConfigC,LcConfigC-Class-Introspection,oc_
195
197static OT_ProcRet NS(LcConfigC_Next) (LcConfigC_ARGS) {
201 LC_CFG retVal = LcConfigNext (hdl);
202 OT_retObj_SET_CFG(retVal);
203 end: MK_UNUSED /* LONG JUMP on error */
205}
206
208static OT_ProcRet NS(LcConfigC_Prev) (LcConfigC_ARGS) {
212 LC_CFG retVal = LcConfigPrev (hdl);
213 OT_retObj_SET_CFG(retVal);
214 end: MK_UNUSED /* LONG JUMP on error */
216}
217
218// doc-key: LcConfigC,LcConfigC-Class-Introspection,sc_
219
221static OT_ProcRet NS(LcConfigC_Instances) (OtClass_ARGS) {
225 LC_CFG retVal = LcConfigInstances ();
226 OT_retObj_SET_CFG(retVal);
227 end: MK_UNUSED /* LONG JUMP on error */
229}
230
232// LcConfigC_Class_RB_API
233
237
238// doc-key: LcConfigC,LcConfigC-Class-Misc,sc_
239
241static OT_ProcRet NS(LcConfigC_GetNull) (OtClass_ARGS) {
245 LC_CFG retVal = LcConfigGetNull ();
246 OT_retObj_SET_CFG(retVal);
247 end: MK_UNUSED /* LONG JUMP on error */
249}
250
252// LcConfigC_Class_RB_API
253
257
258// doc-key: LcConfigC,LcConfigC-Error,om_
259
261static OT_ProcRet NS(LcConfigC_ErrorType) (LcConfigC_ARGS) {
266 end: MK_UNUSED /* LONG JUMP on error */
268}
269
271// LcConfigC_Error_RB_API
272
276
277// doc-key: LcConfigC,LcConfigC-Get,om_
278
280static OT_ProcRet NS(LcConfigC_GetDefaultFormat) (LcConfigC_ARGS) {
285 end: MK_UNUSED /* LONG JUMP on error */
287}
288
290static OT_ProcRet NS(LcConfigC_GetFloatPrecision) (LcConfigC_ARGS) {
295 end: MK_UNUSED /* LONG JUMP on error */
297}
298
300static OT_ProcRet NS(LcConfigC_GetIncludeDir) (LcConfigC_ARGS) {
305 end: MK_UNUSED /* LONG JUMP on error */
307}
308
310static OT_ProcRet NS(LcConfigC_GetOption) (LcConfigC_ARGS) {
313 enum LcConfigOptionsEF option = 0;
317 end: MK_UNUSED /* LONG JUMP on error */
319}
320
322static OT_ProcRet NS(LcConfigC_GetOptions) (LcConfigC_ARGS) {
327 end: MK_UNUSED /* LONG JUMP on error */
329}
330
332static OT_ProcRet NS(LcConfigC_GetTabWidth) (LcConfigC_ARGS) {
337 end: MK_UNUSED /* LONG JUMP on error */
339}
340
342// LcConfigC_Get_RB_API
343
347
348// doc-key: LcConfigC,LcConfigC-Lookup,oc_
349
351static OT_ProcRet NS(LcConfigC_Lookup) (LcConfigC_ARGS) {
354 MK_STRN path = 0;
357 LC_CFS retVal = LcConfigLookup (hdl, path);
358 OT_retObj_SET_CFS(retVal);
359 end: MK_UNUSED /* LONG JUMP on error */
361}
362
363// doc-key: LcConfigC,LcConfigC-Lookup,omo
364
366static OT_ProcRet NS(LcConfigC_LookupBool) (LcConfigC_ARGS) {
369 MK_STRN path = 0;
372 MK_BOOL value_out;
373 MkErrorC_Check(hdl,LcConfigLookupBool (hdl, path, &value_out));
374 OT_retObj_SET_BOL(value_out);
375 end: MK_UNUSED /* LONG JUMP on error */
377}
378
380static OT_ProcRet NS(LcConfigC_LookupFloat) (LcConfigC_ARGS) {
383 MK_STRN path = 0;
386 MK_DBL value_out;
387 MkErrorC_Check(hdl,LcConfigLookupFloat (hdl, path, &value_out));
388 OT_retObj_SET_DBL(value_out);
389 end: MK_UNUSED /* LONG JUMP on error */
391}
392
394static OT_ProcRet NS(LcConfigC_LookupInt) (LcConfigC_ARGS) {
397 MK_STRN path = 0;
400 MK_I32 value_out;
401 MkErrorC_Check(hdl,LcConfigLookupInt (hdl, path, &value_out));
402 OT_retObj_SET_I32(value_out);
403 end: MK_UNUSED /* LONG JUMP on error */
405}
406
408static OT_ProcRet NS(LcConfigC_LookupInt64) (LcConfigC_ARGS) {
411 MK_STRN path = 0;
414 MK_I64 value_out;
415 MkErrorC_Check(hdl,LcConfigLookupInt64 (hdl, path, &value_out));
416 OT_retObj_SET_I64(value_out);
417 end: MK_UNUSED /* LONG JUMP on error */
419}
420
422static OT_ProcRet NS(LcConfigC_LookupString) (LcConfigC_ARGS) {
425 MK_STRN path = 0;
428 MK_STRN value_out;
429 MkErrorC_Check(hdl,LcConfigLookupString (hdl, path, &value_out));
430 OT_retObj_SET_STR(value_out);
431 end: MK_UNUSED /* LONG JUMP on error */
433}
434
436// LcConfigC_Lookup_RB_API
437
441
442// doc-key: LcConfigC,LcConfigC-Misc,oc_
443
445static OT_ProcRet NS(LcConfigC_RootSetting) (LcConfigC_ARGS) {
449 LC_CFS retVal = LcConfigRootSetting (hdl);
450 OT_retObj_SET_CFS(retVal);
451 end: MK_UNUSED /* LONG JUMP on error */
453}
454
455// doc-key: LcConfigC,LcConfigC-Misc,om_
456
458static OT_ProcRet NS(LcConfigC_Clear) (LcConfigC_ARGS) {
462 LcConfigClear (hdl);
464 end: MK_UNUSED /* LONG JUMP on error */
466}
467
469static OT_ProcRet NS(LcConfigC_Log) (LcConfigC_ARGS) {
472 MK_OBJN fmtobj = NULL;
474 MK_DBG debug = 0;
476 MK_STRN callfunc = NULL;
478 MK_I32 lvl = 0;
481 if (debug > MkRuntimeDebugGet()) {
483 goto end;
484 }
485 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
486 LcConfigLog (hdl, fmtobj, debug, callfunc, lvl);
488 end: MK_UNUSED /* LONG JUMP on error */
491}
492
494static OT_ProcRet NS(LcConfigC_ReadFile) (LcConfigC_ARGS) {
497 MK_STRN filename = 0;
500 MkErrorC_Check(hdl,LcConfigReadFile (hdl, filename));
502 end: MK_UNUSED /* LONG JUMP on error */
504}
505
507static OT_ProcRet NS(LcConfigC_ReadString) (LcConfigC_ARGS) {
510 MK_STRN str = 0;
513 MkErrorC_Check(hdl,LcConfigReadString (hdl, str));
515 end: MK_UNUSED /* LONG JUMP on error */
517}
518
520static OT_ProcRet NS(LcConfigC_WriteFile) (LcConfigC_ARGS) {
523 MK_STRN filename = 0;
526 MkErrorC_Check(hdl,LcConfigWriteFile (hdl, filename));
528 end: MK_UNUSED /* LONG JUMP on error */
530}
531
532// doc-key: LcConfigC,LcConfigC-Misc,omo
533
535static OT_ProcRet NS(LcConfigC_WriteString) (LcConfigC_ARGS) {
539 MK_STRN val_out;
540 MkErrorC_Check(hdl,LcConfigWriteString (hdl, &val_out));
541 OT_retObj_SET_STR(val_out);
542 end: MK_UNUSED /* LONG JUMP on error */
544}
545
547// LcConfigC_Misc_RB_API
548
552
553// doc-key: LcConfigC,LcConfigC-Set,om_
554
556static OT_ProcRet NS(LcConfigC_SetDefaultFormat) (LcConfigC_ARGS) {
559 enum LcConfigFormatE format = 0;
562 LcConfigSetDefaultFormat (hdl, format);
564 end: MK_UNUSED /* LONG JUMP on error */
566}
567
569static OT_ProcRet NS(LcConfigC_SetFloatPrecision) (LcConfigC_ARGS) {
572 MK_I16 digits = 0;
575 LcConfigSetFloatPrecision (hdl, digits);
577 end: MK_UNUSED /* LONG JUMP on error */
579}
580
582static OT_ProcRet NS(LcConfigC_SetIncludeDir) (LcConfigC_ARGS) {
585 MK_STRN include_dir = 0;
586 OT_CHECK_REQUIRED(OT_CHECK_STRN (include_dir))
588 LcConfigSetIncludeDir (hdl, include_dir);
590 end: MK_UNUSED /* LONG JUMP on error */
592}
593
595static OT_ProcRet NS(LcConfigC_SetIncludeFunc) (LcConfigC_ARGS) {
598 OT_SETUP_CALLABLE(fConfigIncludeData)
599 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fConfigIncludeData))
601 LcConfigIncludeCallF fConfigIncludeCall = (fConfigIncludeData == NULL ? NULL : NS(ConfigIncludeCall));
602 MkErrorC_Check(hdl,LcConfigSetIncludeFunc (hdl, fConfigIncludeCall, fConfigIncludeData, NS(ConfigIncludeFree)));
604 end: MK_UNUSED /* LONG JUMP on error */
605 OT_CLEANUP_CALLABLE(fConfigIncludeData)
607}
608
610static OT_ProcRet NS(LcConfigC_SetOption) (LcConfigC_ARGS) {
613 enum LcConfigOptionsEF option = 0;
615 MK_BOOL flag = 0;
618 LcConfigSetOption (hdl, option, flag);
620 end: MK_UNUSED /* LONG JUMP on error */
622}
623
625static OT_ProcRet NS(LcConfigC_SetOptions) (LcConfigC_ARGS) {
628 enum LcConfigOptionsEF options = 0;
631 LcConfigSetOptions (hdl, options);
633 end: MK_UNUSED /* LONG JUMP on error */
635}
636
638static OT_ProcRet NS(LcConfigC_SetSettingDeleteFunc) (LcConfigC_ARGS) {
641 OT_SETUP_CALLABLE(fSettingDeleteData)
642 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(fSettingDeleteData))
644 LcSettingDeleteCallF fSettingDeleteCall = (fSettingDeleteData == NULL ? NULL : NS(SettingDeleteCall));
645 MkErrorC_Check(hdl,LcConfigSetSettingDeleteFunc (hdl, fSettingDeleteCall, fSettingDeleteData, NS(SettingDeleteFree)));
647 end: MK_UNUSED /* LONG JUMP on error */
648 OT_CLEANUP_CALLABLE(fSettingDeleteData)
650}
651
653static OT_ProcRet NS(LcConfigC_SetTabWidth) (LcConfigC_ARGS) {
656 MK_I16 width = 0;
659 LcConfigSetTabWidth (hdl, width);
661 end: MK_UNUSED /* LONG JUMP on error */
663}
664
666// LcConfigC_Set_RB_API
667
671
672// doc-key: LcConfigC,LcConfigC-TOR,sCc
673
675static OT_ProcRet NS(LcConfigC_Create) (OtClass_ARGS) {
679 LC_CFG retVal = LcConfigCreate (NULL, NULL);
680 if (retVal == NULL) {
681 OT_ERROR_CONSTRUCTOR(LcConfigC);
682 }
683 OT_CONSTRUCTOR_POST(retVal)
684 OT_retObj_SET_CFG(retVal);
685 end: MK_UNUSED /* LONG JUMP on error */
687}
688
690static OT_ProcRet NS(LcConfigC_new) (CONSTR_ARGS) {
693 LC_CFG retVal = LcConfigCreate (NULL, NULL);
694 if (retVal == NULL) {
695 OT_ERROR_CONSTRUCTOR(LcConfigC);
696 }
697 OT_CONSTRUCTOR_POST(retVal)
698 OT_retObj_CONSTR(retVal);
699 end: MK_UNUSED /* LONG JUMP on error */
701}
702
704// LcConfigC_TOR_RB_API
705
706// END-LcConfigC - created by 'rb_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
707
708/*****************************************************************************/
709/* */
710/* public */
711/* */
712/*****************************************************************************/
713
714void NS(sMark) (MK_PTR ptr) {
715}
716
717void LC(LcConfigC_Init) (MK_RT_ARGS_ONLY) {
718
719 // init type
721 S_INIT;
722
723// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
724
725// doc-key: LcConfigC,LcConfig,sCc
726OT_METH_S ( LcConfigC, Create, LcConfigC_Create )
727OT_METH_C ( LcConfigC, new, LcConfigC_new )
728
729// doc-key: LcConfigC,LcConfig,sc_
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 )
736
737// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
738
739// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
740
741// doc-key: LcConfigC,LcConfig,oc_
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 )
746
747// doc-key: LcConfigC,LcConfig,om_
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 )
756// skip class-overload: LcConfigHandleGet → HandleGet, LcConfigC_HandleGet
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 )
769
770// doc-key: LcConfigC,LcConfig,omo
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 )
777
778// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
779
780}
#define Instances_doc
#define SetIncludeFunc_doc
#define WriteString_doc
#define ReadString_doc
#define ReadFile_doc
#define SetIncludeDir_doc
#define OT_SETUP_hdl_static_constr
#define Lookup_doc
#define SetOption_doc
#define OT_SETUP_hdl
#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 OT_CLASS
#define LookupString_doc
#define OT_SETUP_hdl_static
#define OT_SETUP_hdl_constr
static MK_TYP LcConfigCTT
#define GetFloatPrecision_doc
#define WriteFile_doc
#define SetDefaultFormat_doc
#define new_doc
#define RootSetting_doc
#define LookupInt64_doc
#define GetOptions_doc
#define Clear_doc
#define S_INIT
#define GetOption_doc
#define GetDefaultFormat_doc
#define GetIncludeDir_doc
tag: nhi1-release-250425
#define LcConfigC_MK_NULL
#define LcConfigC_ARGS
#define OT_PKG
#define OT_retObj_SET_CFG(nat)
#define OT_NEW_Lc_enum_OBJ(typ, i)
#define OT_retObj_SET_CFS(nat)
#define NS(n)
#define LC(n)
#define OT_CHECK_bool(val)
#define MK(n)
#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 PTR2VAL(nat)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_I16(nat)
#define OT_CONSTRUCTOR_POST(x)
#define OT_METH_S(c, s, f)
#define MK_BASE_CLASS
#define OT_CLS_T
#define OT_FRAME_CLEANUP
#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 INCR_REF(valP)
#define OT_OBJ_T
#define OT_retObj_RETURN
#define OT_GET_CALL_PROC
#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 VAL2PTR(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
#define OT_METH_C(c, s, f)
#define CONSTR_ARGS
#define OtClass_ARGS
#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...
#define LcConfigLog(...)
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 …
Definition LcEnum_lc.h:30
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134
#define mk_inline
#define MK_NULL_YES
#define MK_UNUSED
#define MK_NULL
#define MK_DEPRECATED
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
MK_PTRB * MK_MNG
signed long long MK_I64
bool MK_BOOL
signed short int MK_I16
double MK_DBL
int32_t MK_HDL
signed int MK_I32
int MK_DBG
static bool MkSysStringIsNULL(MK_STRN str)
static MK_I32 MkRuntimeDebugGet(void)
#define MK_RT_ARGS
#define MK_RT_ARGS_ONLY
#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 …
MkSelfUnlinkF selfUnlink
MkSelfDeleteF selfDelete
MkSelfCreateF selfCreate