theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17#include "LcCall_cc.hh"
18
19namespace cclcconfig {
20
21/*
22 inline MK_PTR LcConfigC::LcConfigC_selfCreateTLS(MK_OBJ obj) {
23 return new LcConfigC(obj);
24 }
25
26 inline MK_PTR LcConfigC::LcConfigC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
27 MK_BUF buf = reinterpret_cast<MK_BUF>(obj);
28 return MkOBJ_R(buf).obj_protect.isLocal ? LcConfigC_selfCreateTLS(obj) : new LcConfigC(obj);
29 }
30*/
31
32 // BEGIN-LcConfigC - created by 'cc_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
33
37
38 // doc-key: LcConfigC,LcConfigC-Class-Export,sc_
39
43 LC_CFG __retVal__L = LcConfigHandleResolve(netHdl);
44 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
45 }
46
47 // doc-key: LcConfigC,LcConfigC-Class-Export,om_
48
49 // skip class-overload: HandleGet = LcConfigHandleGet → MkObjectHandleGet
50
52 // LcConfigC_Class_CC_API
53
57
58 // doc-key: LcConfigC,LcConfigC-Class-Introspection,oc_
59
62 MK_UNUSED auto cfg = getCFG();
63 LC_CFG __retVal__L = LcConfigNext(cfg);
64 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
65 }
66
69 MK_UNUSED auto cfg = getCFG();
70 LC_CFG __retVal__L = LcConfigPrev(cfg);
71 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
72 }
73
74 // doc-key: LcConfigC,LcConfigC-Class-Introspection,sc_
75
79 LC_CFG __retVal__L = LcConfigInstances();
80 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
81 }
82
84 // LcConfigC_Class_CC_API
85
89
90 // doc-key: LcConfigC,LcConfigC-Class-Misc,sc_
91
95 LC_CFG __retVal__L = LcConfigGetNull();
96 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
97 }
98
100 // LcConfigC_Class_CC_API
101
105
106 // doc-key: LcConfigC,LcConfigC-Error,om_
107
110 MK_UNUSED auto config = getCFGN();
111 enum LcErrorTypeE __retVal__L = LcConfigErrorType(config);
112 return __retVal__L;
113 }
114
116 // LcConfigC_Error_CC_API
117
121
122 // doc-key: LcConfigC,LcConfigC-Get,om_
123
126 MK_UNUSED auto config = getCFGN();
127 enum LcConfigFormatE __retVal__L = LcConfigGetDefaultFormat(config);
128 return __retVal__L;
129 }
130
133 MK_UNUSED auto config = getCFGN();
134 MK_I16 __retVal__L = LcConfigGetFloatPrecision(config);
135 return __retVal__L;
136 }
137
140 MK_UNUSED auto config = getCFGN();
141 MK_STRN __retVal__L = LcConfigGetIncludeDir(config);
142 return __retVal__L;
143 }
144
147 MK_UNUSED auto config = getCFGN();
148 MK_BOOL __retVal__L = LcConfigGetOption(config, option);
149 return __retVal__L;
150 }
151
154 MK_UNUSED auto config = getCFGN();
155 enum LcConfigOptionsEF __retVal__L = LcConfigGetOptions(config);
156 return __retVal__L;
157 }
158
161 MK_UNUSED auto config = getCFGN();
162 MK_I16 __retVal__L = LcConfigGetTabWidth(config);
163 return __retVal__L;
164 }
165
167 // LcConfigC_Get_CC_API
168
172
173 // doc-key: LcConfigC,LcConfigC-Lookup,oc_
174
176 inline LcSettingC* LcConfigC::Lookup (MK_STRN path) const {
177 MK_UNUSED auto config = getCFGN();
178 LC_CFS __retVal__L = LcConfigLookup(config, path);
179 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
180 }
181
183 inline LcSettingC* LcConfigC::Lookup (const std::string& path) const {
184 MK_UNUSED auto config = getCFGN();
185 const MK_STRN path_hdl = path.c_str();
186 LC_CFS __retVal__L = LcConfigLookup(config, path_hdl);
187 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
188 }
189
190 // doc-key: LcConfigC,LcConfigC-Lookup,omo
191
194 MK_UNUSED auto config = getCFGN();
195 MK_BOOL value_out;
196 enum MkErrorE errVal = LcConfigLookupBool(config, path, &value_out);
197 MkErrorC_Check(config, errVal);
198 return value_out;
199 }
200
202 inline MK_BOOL LcConfigC::LookupBool (const std::string& path) const {
203 MK_UNUSED auto config = getCFGN();
204 MK_BOOL value_out;
205 const MK_STRN path_hdl = path.c_str();
206 enum MkErrorE errVal = LcConfigLookupBool(config, path_hdl, &value_out);
207 MkErrorC_Check(config, errVal);
208 return value_out;
209 }
210
213 MK_UNUSED auto config = getCFGN();
214 MK_DBL value_out;
215 enum MkErrorE errVal = LcConfigLookupFloat(config, path, &value_out);
216 MkErrorC_Check(config, errVal);
217 return value_out;
218 }
219
221 inline MK_DBL LcConfigC::LookupFloat (const std::string& path) const {
222 MK_UNUSED auto config = getCFGN();
223 MK_DBL value_out;
224 const MK_STRN path_hdl = path.c_str();
225 enum MkErrorE errVal = LcConfigLookupFloat(config, path_hdl, &value_out);
226 MkErrorC_Check(config, errVal);
227 return value_out;
228 }
229
231 inline MK_I32 LcConfigC::LookupInt (MK_STRN path) const {
232 MK_UNUSED auto config = getCFGN();
233 MK_I32 value_out;
234 enum MkErrorE errVal = LcConfigLookupInt(config, path, &value_out);
235 MkErrorC_Check(config, errVal);
236 return value_out;
237 }
238
240 inline MK_I32 LcConfigC::LookupInt (const std::string& path) const {
241 MK_UNUSED auto config = getCFGN();
242 MK_I32 value_out;
243 const MK_STRN path_hdl = path.c_str();
244 enum MkErrorE errVal = LcConfigLookupInt(config, path_hdl, &value_out);
245 MkErrorC_Check(config, errVal);
246 return value_out;
247 }
248
251 MK_UNUSED auto config = getCFGN();
252 MK_I64 value_out;
253 enum MkErrorE errVal = LcConfigLookupInt64(config, path, &value_out);
254 MkErrorC_Check(config, errVal);
255 return value_out;
256 }
257
259 inline MK_I64 LcConfigC::LookupInt64 (const std::string& path) const {
260 MK_UNUSED auto config = getCFGN();
261 MK_I64 value_out;
262 const MK_STRN path_hdl = path.c_str();
263 enum MkErrorE errVal = LcConfigLookupInt64(config, path_hdl, &value_out);
264 MkErrorC_Check(config, errVal);
265 return value_out;
266 }
267
270 MK_UNUSED auto config = getCFGN();
271 MK_STRN value_out;
272 enum MkErrorE errVal = LcConfigLookupString(config, path, &value_out);
273 MkErrorC_Check(config, errVal);
274 return value_out;
275 }
276
278 inline MK_STRN LcConfigC::LookupString (const std::string& path) const {
279 MK_UNUSED auto config = getCFGN();
280 MK_STRN value_out;
281 const MK_STRN path_hdl = path.c_str();
282 enum MkErrorE errVal = LcConfigLookupString(config, path_hdl, &value_out);
283 MkErrorC_Check(config, errVal);
284 return value_out;
285 }
286
288 // LcConfigC_Lookup_CC_API
289
293
294 // doc-key: LcConfigC,LcConfigC-Misc,oc_
295
298 MK_UNUSED auto config = getCFGN();
299 LC_CFS __retVal__L = LcConfigRootSetting(config);
300 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
301 }
302
303 // doc-key: LcConfigC,LcConfigC-Misc,om_
304
306 inline void LcConfigC::Clear () {
307 MK_UNUSED auto config = getCFG();
308 LcConfigClear(config);
309 }
310
312 inline void LcConfigC::Log (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
313 MK_UNUSED auto cfg = getCFGN();
314 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
315 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
316 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
317 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
318 }
319
321 inline void LcConfigC::Log (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
322 MK_UNUSED auto cfg = getCFGN();
323 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
324 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
325 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
326 LcConfigLog(cfg, fmtobj_hdl, debug, callfunc, lvl);
327 }
328
330 inline void LcConfigC::ReadFile (MK_STRN filename) {
331 MK_UNUSED auto config = getCFG();
332 enum MkErrorE errVal = LcConfigReadFile(config, filename);
333 MkErrorC_Check(config, errVal);
334 }
335
337 inline void LcConfigC::ReadFile (const std::string& filename) {
338 MK_UNUSED auto config = getCFG();
339 const MK_STRN filename_hdl = filename.c_str();
340 enum MkErrorE errVal = LcConfigReadFile(config, filename_hdl);
341 MkErrorC_Check(config, errVal);
342 }
343
345 inline void LcConfigC::ReadString (MK_STRN str) {
346 MK_UNUSED auto config = getCFG();
347 enum MkErrorE errVal = LcConfigReadString(config, str);
348 MkErrorC_Check(config, errVal);
349 }
350
352 inline void LcConfigC::ReadString (const std::string& str) {
353 MK_UNUSED auto config = getCFG();
354 const MK_STRN str_hdl = str.c_str();
355 enum MkErrorE errVal = LcConfigReadString(config, str_hdl);
356 MkErrorC_Check(config, errVal);
357 }
358
360 inline void LcConfigC::WriteFile (MK_STRN filename) {
361 MK_UNUSED auto config = getCFG();
362 enum MkErrorE errVal = LcConfigWriteFile(config, filename);
363 MkErrorC_Check(config, errVal);
364 }
365
367 inline void LcConfigC::WriteFile (const std::string& filename) {
368 MK_UNUSED auto config = getCFG();
369 const MK_STRN filename_hdl = filename.c_str();
370 enum MkErrorE errVal = LcConfigWriteFile(config, filename_hdl);
371 MkErrorC_Check(config, errVal);
372 }
373
374 // doc-key: LcConfigC,LcConfigC-Misc,omo
375
378 MK_UNUSED auto cfg = getCFGN();
379 MK_STRN val_out;
380 enum MkErrorE errVal = LcConfigWriteString(cfg, &val_out);
381 MkErrorC_Check(cfg, errVal);
382 return val_out;
383 }
384
386 // LcConfigC_Misc_CC_API
387
391
392 // doc-key: LcConfigC,LcConfigC-Set,om_
393
396 MK_UNUSED auto config = getCFG();
397 LcConfigSetDefaultFormat(config, format);
398 }
399
402 MK_UNUSED auto config = getCFG();
403 LcConfigSetFloatPrecision(config, digits);
404 }
405
407 inline void LcConfigC::SetIncludeDir (MK_STRN include_dir) {
408 MK_UNUSED auto config = getCFG();
409 LcConfigSetIncludeDir(config, include_dir);
410 }
411
413 inline void LcConfigC::SetIncludeDir (const std::string& include_dir) {
414 MK_UNUSED auto config = getCFG();
415 const MK_STRN include_dir_hdl = include_dir.c_str();
416 LcConfigSetIncludeDir(config, include_dir_hdl);
417 }
418
420 inline void LcConfigC::SetIncludeFunc (LcConfigIncludeIF* fConfigIncludeData) {
421 MK_UNUSED auto cfg = getCFG();
422 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
423 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
424 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
425 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
426 MkErrorC_Check(cfg, errVal);
427 }
428
430 inline void LcConfigC::SetIncludeFunc (LcConfigIncludeSCB fConfigIncludeData) {
431 MK_UNUSED auto cfg = getCFG();
432 auto fConfigIncludeCall = LcConfigIncludeCallbackC::Call;
433 auto fConfigIncludeData_ptr = LcConfigIncludeCallbackC::Create(MK_RT_CALL fConfigIncludeData, this);
434 if (fConfigIncludeData_ptr == NULL) fConfigIncludeCall = NULL;
435 enum MkErrorE errVal = LcConfigSetIncludeFunc(cfg, fConfigIncludeCall, fConfigIncludeData_ptr, LcConfigIncludeCallbackC::Free);
436 MkErrorC_Check(cfg, errVal);
437 }
438
440 inline void LcConfigC::SetOption (LcConfigOptionsEF option, MK_BOOL flag) {
441 MK_UNUSED auto config = getCFG();
442 LcConfigSetOption(config, option, flag);
443 }
444
447 MK_UNUSED auto config = getCFG();
448 LcConfigSetOptions(config, options);
449 }
450
452 inline void LcConfigC::SetSettingDeleteFunc (LcSettingDeleteIF* fSettingDeleteData) {
453 MK_UNUSED auto cfg = getCFG();
454 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
455 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
456 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
457 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
458 MkErrorC_Check(cfg, errVal);
459 }
460
462 inline void LcConfigC::SetSettingDeleteFunc (LcSettingDeleteSCB fSettingDeleteData) {
463 MK_UNUSED auto cfg = getCFG();
464 auto fSettingDeleteCall = LcSettingDeleteCallbackC::Call;
465 auto fSettingDeleteData_ptr = LcSettingDeleteCallbackC::Create(MK_RT_CALL fSettingDeleteData, this);
466 if (fSettingDeleteData_ptr == NULL) fSettingDeleteCall = NULL;
467 enum MkErrorE errVal = LcConfigSetSettingDeleteFunc(cfg, fSettingDeleteCall, fSettingDeleteData_ptr, LcSettingDeleteCallbackC::Free);
468 MkErrorC_Check(cfg, errVal);
469 }
470
472 inline void LcConfigC::SetTabWidth (MK_I16 width) {
473 MK_UNUSED auto config = getCFG();
474 LcConfigSetTabWidth(config, width);
475 }
476
478 // LcConfigC_Set_CC_API
479
483
484 // doc-key: LcConfigC,LcConfigC-TOR,sCc
485
487 inline MK_OBJ LcConfigC::CTOR () {
489 LC_CFG __retVal__L = LcConfigCreate(NULL, NULL);
490 if (__retVal__L == NULL) {
491 throw MkInitError("LcConfigC::CTOR");
492 }
493 return (MK_OBJ)__retVal__L;
494 }
495
499 LC_CFG __retVal__L = LcConfigCreate(NULL, NULL);
500 if (__retVal__L == NULL) {
501 throw MkInitError("LcConfigC::Create");
502 }
503 return LcConfigC::LcConfigC_ObjCreate(MK_RT_CALL __retVal__L);
504 }
505
507 // LcConfigC_TOR_CC_API
508
509 // END-LcConfigC - created by 'cc_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
510
511} // END - namespace "cclcconfig"
tag: nhi1-release-250425
Struct to represent the data from the LcConfigC … → C-API: liblcconfig::LcConfigS
Struct to represent the data from the LcSettingC … → C-API: liblcconfig::LcSettingS
LC_CFGN getCFGN() const
(const) return the LibMsgqueObject from current LcConfigC instance
LC_CFG getCFG() const
return the LibMsgqueObject from current LcConfigC instance
static LcConfigC * LcConfigC_ObjNew(MK_RT_ARGS LC_CFG hdl)
return LcConfigC from LibMsgqueObject
static LcConfigC * Instances()
C++: [static] LcConfigC* LcConfigC::Instances() → C-API get head-instance from linked-list of Lc...
LcConfigC * Prev()
C++: LcConfigC* cfg.Prev() → C-API get previous instance from linked-list of LcConfigS type
static LcConfigC * GetNull()
C++: [static] LcConfigC* LcConfigC::GetNull() → C-API Null-Slot - return a LcConfigC typed NULL ...
LcConfigC * Next()
C++: LcConfigC* cfg.Next() → C-API get next instance from linked-list of LcConfigS type
static LcConfigC * HandleResolve(MK_HDL netHdl)
C++: [static] LcConfigC* LcConfigC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static LC_CFG LcConfigPrev(LC_CFG const cfg)
get previous instance from linked-list of LcConfigS type
static LC_CFG LcConfigGetNull(void)
Null-Slot - return a LcConfigC typed NULL instance …
static LC_CFG LcConfigNext(LC_CFG const cfg)
get next instance from linked-list of LcConfigS type
#define LcConfigInstances()
#define LcConfigHandleResolve(...)
LcErrorTypeE ErrorType() const
C++: LcErrorTypeE config.ErrorType() → C-API This function, which is implemented as a macro,...
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...
LcConfigOptionsEF GetOptions() const
C++: LcConfigOptionsEF config.GetOptions() → C-API These functions get and set the options for ...
MK_I16 GetTabWidth() const
C++: MK_I16 config.GetTabWidth() → C-API These functions, which are implemented as macros,...
MK_STRN GetIncludeDir() const
C++: MK_STRN config.GetIncludeDir() → C-API ConfigSetIncludeDir specifies the include directory...
MK_I16 GetFloatPrecision() const
C++: MK_I16 config.GetFloatPrecision() → C-API Since v1.6 These functions get and set the numbe...
MK_BOOL GetOption(LcConfigOptionsEF option) const
C++: MK_BOOL config.GetOption(LcConfigOptionsEF option) → C-API Since v1.7 These functions get ...
LcConfigFormatE GetDefaultFormat() const
C++: LcConfigFormatE config.GetDefaultFormat() → C-API These functions, which are implemented a...
static MK_STRN LcConfigGetIncludeDir(LC_CFGN config)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
static enum LcConfigOptionsEF LcConfigGetOptions(LC_CFGN config)
These functions get and set the options for the configuration config …
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 LcConfigGetFloatPrecision(LC_CFGN config)
Since v1.6 These functions get and set the number of decimal digits to output after the radix charact...
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 …
MK_STRN LookupString(MK_STRN path) const
C++: MK_STRN config.LookupString(MK_STRN path) → C-API These functions look up the value of the...
LcSettingC * Lookup(MK_STRN path) const
C++: LcSettingC* config.Lookup(MK_STRN path) → C-API This function locates the setting in the c...
MK_BOOL LookupBool(MK_STRN path) const
C++: MK_BOOL config.LookupBool(MK_STRN path) → C-API These functions look up the value of the s...
MK_I32 LookupInt(MK_STRN path) const
C++: MK_I32 config.LookupInt(MK_STRN path) → C-API These functions look up the value of the set...
MK_I64 LookupInt64(MK_STRN path) const
C++: MK_I64 config.LookupInt64(MK_STRN path) → C-API These functions look up the value of the s...
MK_DBL LookupFloat(MK_STRN path) const
C++: MK_DBL config.LookupFloat(MK_STRN path) → C-API These functions look up the value of the s...
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 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 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 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 LC_CFS LcConfigLookup(LC_CFGN config, MK_STRN path)
This function locates the setting in the configuration config specified by the path path …
void ReadString(MK_STRN str)
C++: config.ReadString(MK_STRN str) → C-API This function reads and parses a configuration from...
MK_STRN WriteString() const
C++: MK_STRN cfg.WriteString() → C-API read the entire configuration cfg into the string val_ou...
void ReadFile(MK_STRN filename)
C++: config.ReadFile(MK_STRN filename) → C-API This function reads and parses a configuration f...
LcSettingC * RootSetting() const
C++: LcSettingC* config.RootSetting() → C-API This function, which is implemented as a macro,...
void Log(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: cfg.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION...
void WriteFile(MK_STRN filename)
C++: config.WriteFile(MK_STRN filename) → C-API This function writes the configuration config t...
void Clear()
C++: config.Clear() → C-API Since v1.7 This function clears the configuration config …
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
#define LcConfigWriteString(...)
#define LcConfigLog(...)
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …
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 LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
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...
void SetIncludeDir(MK_STRN include_dir)
C++: config.SetIncludeDir(MK_STRN include_dir) → C-API ConfigSetIncludeDir specifies the includ...
void SetIncludeFunc(LcConfigIncludeIF *fConfigIncludeData=NULL)
C++: cfg.SetIncludeFunc(LcConfigIncludeSCB LcConfigIncludeIF* fConfigIncludeData = NULL) → C-API ...
void SetSettingDeleteFunc(LcSettingDeleteIF *fSettingDeleteData=NULL)
C++: cfg.SetSettingDeleteFunc(LcSettingDeleteSCB LcSettingDeleteIF* fSettingDeleteData = NULL) → C-...
void SetDefaultFormat(LcConfigFormatE format)
C++: config.SetDefaultFormat(LcConfigFormatE format) → C-API These functions,...
void SetOptions(LcConfigOptionsEF options)
C++: config.SetOptions(LcConfigOptionsEF options) → C-API These functions get and set the optio...
void SetTabWidth(MK_I16 width)
C++: config.SetTabWidth(MK_I16 width) → C-API These functions, which are implemented as macros,...
void SetOption(LcConfigOptionsEF option, MK_BOOL flag)
C++: config.SetOption(LcConfigOptionsEF option, MK_BOOL flag) → C-API Since v1....
void SetFloatPrecision(MK_I16 digits)
C++: config.SetFloatPrecision(MK_I16 digits) → C-API Since v1.6 These functions get and set the...
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 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 …
#define LcConfigSetSettingDeleteFunc(...)
static void LcConfigSetOptions(LC_CFG config, enum LcConfigOptionsEF options)
These functions get and set the options for the configuration config …
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 LcConfigSetIncludeFunc(...)
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 LcConfigSetIncludeDir(LC_CFG config, MK_STRN include_dir)
ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specifi...
static LcConfigC * Create()
C++: [constructor,static] LcConfigC* LcConfigC::Create() → C-API create a LcConfigC instance …
static LC_CFG LcConfigCreate(MK_TYP type, config_t *nat)
create a LcConfigC instance …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
static LcSettingC * LcSettingC_ObjNew(MK_RT_ARGS LC_CFS hdl)
return LcSettingC from LibMsgqueObject
#define MK_UNUSED
double MK_DBL
signed long long MK_I64
int32_t MK_HDL
signed short int MK_I16
signed int MK_I32
const MK_STRB * MK_STRN
MK_OBJN getOBJN__null_allow() const
MK_OBJN getOBJN() const
struct MkObjectS * MK_OBJ
static MK_I32 MkRuntimeDebugGet(void)
#define MK_RT_CALL
#define MkRtSetup_NULL
namespace for the CcLcConfig "C++"-API
Definition LcCall_cc.cc:21
void(* LcSettingDeleteSCB)(MK_I32 hdl)
static callback fired just before deleting a LcSettingC …
void(* LcConfigIncludeSCB)(std::string incDir, std::string path, MkBufferListC &ret)
static callback fired if a @include "FILE-PATTERN" is found in the config-file …
static enum MkErrorE Call(LcConfigIncludeCallF_ARGS)
Definition LcCall_cc.cc:34
static MK_CBP Create(MK_RT mkrt, LcConfigIncludeSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:42
static void Free(LcConfigIncludeFreeF_ARGS)
Definition LcCall_cc.cc:25
interface fired if a @include "FILE-PATTERN" is found in the config-file …
static void Free(LcSettingDeleteFreeF_ARGS)
Definition LcCall_cc.cc:74
static enum MkErrorE Call(LcSettingDeleteCallF_ARGS)
Definition LcCall_cc.cc:83
static MK_CBP Create(MK_RT mkrt, LcSettingDeleteSCB const callback, LcConfigC *self=NULL)
Definition LcCall_cc.hh:79
interface fired just before deleting a LcSettingC …
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …