theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17namespace cclcconfig {
18
19/*
20 inline MK_PTR LcSettingC::LcSettingC_selfCreateTLS(MK_OBJ obj) {
21 return new LcSettingC(obj);
22 }
23
24 inline MK_PTR LcSettingC::LcSettingC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
25 MK_BUF buf = reinterpret_cast<MK_BUF>(obj);
26 return MkOBJ_R(buf).obj_protect.isLocal ? LcSettingC_selfCreateTLS(obj) : new LcSettingC(obj);
27 }
28*/
29
30 // BEGIN-LcSettingC - created by 'cc_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
31
35
36 // doc-key: LcSettingC,LcSettingC-Class-Export,sc_
37
41 LC_CFS __retVal__L = LcSettingHandleResolve(netHdl);
42 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
43 }
44
45 // doc-key: LcSettingC,LcSettingC-Class-Export,om_
46
47 // skip class-overload: HandleGet = LcSettingHandleGet → MkObjectHandleGet
48
50 // LcSettingC_Class_CC_API
51
55
56 // doc-key: LcSettingC,LcSettingC-Class-Introspection,oc_
57
60 MK_UNUSED auto cfs = getCFS();
61 LC_CFS __retVal__L = LcSettingNext(cfs);
62 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
63 }
64
67 MK_UNUSED auto cfs = getCFS();
68 LC_CFS __retVal__L = LcSettingPrev(cfs);
69 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
70 }
71
72 // doc-key: LcSettingC,LcSettingC-Class-Introspection,sc_
73
77 LC_CFS __retVal__L = LcSettingInstances();
78 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
79 }
80
82 // LcSettingC_Class_CC_API
83
87
88 // doc-key: LcSettingC,LcSettingC-Class-Misc,sc_
89
93 LC_CFS __retVal__L = LcSettingGetNull();
94 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
95 }
96
98 // LcSettingC_Class_CC_API
99
103
104 // doc-key: LcSettingC,LcSettingC-Get,oc_
105
108 MK_UNUSED auto setting = getCFSN();
109 LC_CFS __retVal__L = LcSettingGetElem(setting, idx);
110 if (__retVal__L == NULL) {
111 throw MkInitSoftError("LcSettingC::GetElem");
112 }
113 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
114 }
115
118 MK_UNUSED auto setting = getCFSN();
119 LC_CFS __retVal__L = LcSettingGetMember(setting, name);
120 if (__retVal__L == NULL) {
121 throw MkInitSoftError("LcSettingC::GetMember");
122 }
123 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
124 }
125
127 inline LcSettingC* LcSettingC::GetMember (const std::string& name) const {
128 MK_UNUSED auto setting = getCFSN();
129 const MK_STRN name_hdl = name.c_str();
130 LC_CFS __retVal__L = LcSettingGetMember(setting, name_hdl);
131 if (__retVal__L == NULL) {
132 throw MkInitSoftError("LcSettingC::GetMember");
133 }
134 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
135 }
136
137 // doc-key: LcSettingC,LcSettingC-Get,om_
138
140 inline MK_BOOL LcSettingC::GetBool () const {
141 MK_UNUSED auto setting = getCFSN();
142 MK_BOOL __retVal__L = LcSettingGetBool(setting);
143 return __retVal__L;
144 }
145
148 MK_UNUSED auto setting = getCFSN();
149 MK_BOOL __retVal__L = LcSettingGetBoolElem(setting, idx);
150 return __retVal__L;
151 }
152
154 inline MK_DBL LcSettingC::GetFloat () const {
155 MK_UNUSED auto setting = getCFSN();
156 MK_DBL __retVal__L = LcSettingGetFloat(setting);
157 return __retVal__L;
158 }
159
162 MK_UNUSED auto setting = getCFSN();
163 MK_DBL __retVal__L = LcSettingGetFloatElem(setting, idx);
164 return __retVal__L;
165 }
166
169 MK_UNUSED auto setting = getCFSN();
170 enum LcConfigFormatE __retVal__L = LcSettingGetFormat(setting);
171 return __retVal__L;
172 }
173
175 inline MK_I32 LcSettingC::GetInt () const {
176 MK_UNUSED auto setting = getCFSN();
177 MK_I32 __retVal__L = LcSettingGetInt(setting);
178 return __retVal__L;
179 }
180
182 inline MK_I64 LcSettingC::GetInt64 () const {
183 MK_UNUSED auto setting = getCFSN();
184 MK_I64 __retVal__L = LcSettingGetInt64(setting);
185 return __retVal__L;
186 }
187
190 MK_UNUSED auto setting = getCFSN();
191 MK_I64 __retVal__L = LcSettingGetInt64Elem(setting, idx);
192 return __retVal__L;
193 }
194
197 MK_UNUSED auto setting = getCFSN();
198 MK_I32 __retVal__L = LcSettingGetIntElem(setting, idx);
199 return __retVal__L;
200 }
201
204 MK_UNUSED auto setting = getCFSN();
205 MK_STRN __retVal__L = LcSettingGetString(setting);
206 return __retVal__L;
207 }
208
211 MK_UNUSED auto setting = getCFSN();
212 MK_STRN __retVal__L = LcSettingGetStringElem(setting, idx);
213 return __retVal__L;
214 }
215
217 // LcSettingC_Get_CC_API
218
222
223 // doc-key: LcSettingC,LcSettingC-Is,om_
224
227 MK_UNUSED auto setting = getCFSN();
228 MK_BOOL __retVal__L = LcSettingIsAggregate(setting);
229 return __retVal__L;
230 }
231
233 inline MK_BOOL LcSettingC::IsArray () const {
234 MK_UNUSED auto setting = getCFSN();
235 MK_BOOL __retVal__L = LcSettingIsArray(setting);
236 return __retVal__L;
237 }
238
240 inline MK_BOOL LcSettingC::IsGroup () const {
241 MK_UNUSED auto setting = getCFSN();
242 MK_BOOL __retVal__L = LcSettingIsGroup(setting);
243 return __retVal__L;
244 }
245
247 inline MK_BOOL LcSettingC::IsList () const {
248 MK_UNUSED auto setting = getCFSN();
249 MK_BOOL __retVal__L = LcSettingIsList(setting);
250 return __retVal__L;
251 }
252
255 MK_UNUSED auto setting = getCFSN();
256 MK_BOOL __retVal__L = LcSettingIsNumber(setting);
257 return __retVal__L;
258 }
259
261 inline MK_BOOL LcSettingC::IsRoot () const {
262 MK_UNUSED auto setting = getCFSN();
263 MK_BOOL __retVal__L = LcSettingIsRoot(setting);
264 return __retVal__L;
265 }
266
269 MK_UNUSED auto setting = getCFSN();
270 MK_BOOL __retVal__L = LcSettingIsScalar(setting);
271 return __retVal__L;
272 }
273
275 // LcSettingC_Is_CC_API
276
280
281 // doc-key: LcSettingC,LcSettingC-Lookup,oc_
282
285 MK_UNUSED auto setting = getCFS();
286 LC_CFS __retVal__L = LcSettingLookup(setting, path);
287 if (__retVal__L == NULL) {
288 throw MkInitSoftError("LcSettingC::Lookup");
289 }
290 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
291 }
292
294 inline LcSettingC* LcSettingC::Lookup (const std::string& path) {
295 MK_UNUSED auto setting = getCFS();
296 const MK_STRN path_hdl = path.c_str();
297 LC_CFS __retVal__L = LcSettingLookup(setting, path_hdl);
298 if (__retVal__L == NULL) {
299 throw MkInitSoftError("LcSettingC::Lookup");
300 }
301 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
302 }
303
306 MK_UNUSED auto setting = getCFSN();
307 MK_BFL __retVal__L = LcSettingLookupAll(setting);
309 }
310
311 // doc-key: LcSettingC,LcSettingC-Lookup,omo
312
315 MK_UNUSED auto setting = getCFSN();
316 MK_BOOL value_out;
317 enum MkErrorE errVal = LcSettingLookupBool(setting, name, &value_out);
318 MkErrorC_Check(setting, errVal);
319 return value_out;
320 }
321
323 inline MK_BOOL LcSettingC::LookupBool (const std::string& name) const {
324 MK_UNUSED auto setting = getCFSN();
325 MK_BOOL value_out;
326 const MK_STRN name_hdl = name.c_str();
327 enum MkErrorE errVal = LcSettingLookupBool(setting, name_hdl, &value_out);
328 MkErrorC_Check(setting, errVal);
329 return value_out;
330 }
331
334 MK_UNUSED auto setting = getCFSN();
335 MK_DBL value_out;
336 enum MkErrorE errVal = LcSettingLookupFloat(setting, name, &value_out);
337 MkErrorC_Check(setting, errVal);
338 return value_out;
339 }
340
342 inline MK_DBL LcSettingC::LookupFloat (const std::string& name) const {
343 MK_UNUSED auto setting = getCFSN();
344 MK_DBL value_out;
345 const MK_STRN name_hdl = name.c_str();
346 enum MkErrorE errVal = LcSettingLookupFloat(setting, name_hdl, &value_out);
347 MkErrorC_Check(setting, errVal);
348 return value_out;
349 }
350
353 MK_UNUSED auto setting = getCFSN();
354 MK_I32 value_out;
355 enum MkErrorE errVal = LcSettingLookupInt(setting, name, &value_out);
356 MkErrorC_Check(setting, errVal);
357 return value_out;
358 }
359
361 inline MK_I32 LcSettingC::LookupInt (const std::string& name) const {
362 MK_UNUSED auto setting = getCFSN();
363 MK_I32 value_out;
364 const MK_STRN name_hdl = name.c_str();
365 enum MkErrorE errVal = LcSettingLookupInt(setting, name_hdl, &value_out);
366 MkErrorC_Check(setting, errVal);
367 return value_out;
368 }
369
372 MK_UNUSED auto setting = getCFSN();
373 MK_I64 value_out;
374 enum MkErrorE errVal = LcSettingLookupInt64(setting, name, &value_out);
375 MkErrorC_Check(setting, errVal);
376 return value_out;
377 }
378
380 inline MK_I64 LcSettingC::LookupInt64 (const std::string& name) const {
381 MK_UNUSED auto setting = getCFSN();
382 MK_I64 value_out;
383 const MK_STRN name_hdl = name.c_str();
384 enum MkErrorE errVal = LcSettingLookupInt64(setting, name_hdl, &value_out);
385 MkErrorC_Check(setting, errVal);
386 return value_out;
387 }
388
391 MK_UNUSED auto setting = getCFSN();
392 MK_STRN value_out;
393 enum MkErrorE errVal = LcSettingLookupString(setting, name, &value_out);
394 MkErrorC_Check(setting, errVal);
395 return value_out;
396 }
397
399 inline MK_STRN LcSettingC::LookupString (const std::string& name) const {
400 MK_UNUSED auto setting = getCFSN();
401 MK_STRN value_out;
402 const MK_STRN name_hdl = name.c_str();
403 enum MkErrorE errVal = LcSettingLookupString(setting, name_hdl, &value_out);
404 MkErrorC_Check(setting, errVal);
405 return value_out;
406 }
407
409 // LcSettingC_Lookup_CC_API
410
414
415 // doc-key: LcSettingC,LcSettingC-Misc,oc_
416
419 MK_UNUSED auto setting = getCFS();
420 LC_CFS __retVal__L = LcSettingAddIfNotExists(setting, name, cfgtype);
421 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
422 }
423
425 inline LcSettingC* LcSettingC::AddIfNotExists (const std::string& name, LcConfigTypeE cfgtype) {
426 MK_UNUSED auto setting = getCFS();
427 const MK_STRN name_hdl = name.c_str();
428 LC_CFS __retVal__L = LcSettingAddIfNotExists(setting, name_hdl, cfgtype);
429 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
430 }
431
434 MK_UNUSED auto setting = getCFSN();
435 LC_CFS __retVal__L = LcSettingParent(setting);
436 if (__retVal__L == NULL) {
437 throw MkInitSoftError("LcSettingC::Parent");
438 }
439 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
440 }
441
442 // doc-key: LcSettingC,LcSettingC-Misc,om_
443
446 MK_UNUSED auto setting = getCFS();
447 MK_BOOL __retVal__L = LcSettingExists(setting, name);
448 return __retVal__L;
449 }
450
452 inline MK_BOOL LcSettingC::Exists (const std::string& name) {
453 MK_UNUSED auto setting = getCFS();
454 const MK_STRN name_hdl = name.c_str();
455 MK_BOOL __retVal__L = LcSettingExists(setting, name_hdl);
456 return __retVal__L;
457 }
458
460 inline MK_I32 LcSettingC::Index () const {
461 MK_UNUSED auto setting = getCFSN();
462 MK_I32 __retVal__L = LcSettingIndex(setting);
463 return __retVal__L;
464 }
465
467 inline MK_I32 LcSettingC::Length () const {
468 MK_UNUSED auto setting = getCFSN();
469 MK_I32 __retVal__L = LcSettingLength(setting);
470 return __retVal__L;
471 }
472
473 // skip class-overload: Log = LcSettingLog → MkObjectLog
474
475 // skip class-overload: Log = LcSettingLog → MkObjectLog
476
478 inline MK_STRN LcSettingC::Name () const {
479 MK_UNUSED auto setting = getCFSN();
480 MK_STRN __retVal__L = LcSettingName(setting);
481 return __retVal__L;
482 }
483
485 inline void LcSettingC::Remove (MK_STRN name) {
486 MK_UNUSED auto parent = getCFS();
487 enum MkErrorE errVal = LcSettingRemove(parent, name);
488 MkErrorC_Check(parent, errVal);
489 }
490
492 inline void LcSettingC::Remove (const std::string& name) {
493 MK_UNUSED auto parent = getCFS();
494 const MK_STRN name_hdl = name.c_str();
495 enum MkErrorE errVal = LcSettingRemove(parent, name_hdl);
496 MkErrorC_Check(parent, errVal);
497 }
498
500 inline void LcSettingC::RemoveElem (MK_I32 idx) {
501 MK_UNUSED auto parent = getCFS();
502 enum MkErrorE errVal = LcSettingRemoveElem(parent, idx);
503 MkErrorC_Check(parent, errVal);
504 }
505
508 MK_UNUSED auto setting = getCFSN();
509 MK_STRN __retVal__L = LcSettingSourceFile(setting);
510 return __retVal__L;
511 }
512
515 MK_UNUSED auto setting = getCFSN();
516 MK_I32 __retVal__L = LcSettingSourceLine(setting);
517 return __retVal__L;
518 }
519
522 MK_UNUSED auto setting = getCFSN();
523 enum LcConfigTypeE __retVal__L = LcSettingType(setting);
524 return __retVal__L;
525 }
526
528 // LcSettingC_Misc_CC_API
529
533
534 // doc-key: LcSettingC,LcSettingC-Set,oc_
535
538 MK_UNUSED auto setting = getCFS();
539 LC_CFS __retVal__L = LcSettingSetBoolElem(setting, idx, value);
540 if (__retVal__L == NULL) {
541 throw MkInitSoftError("LcSettingC::SetBoolElem");
542 }
543 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
544 }
545
548 MK_UNUSED auto setting = getCFS();
549 LC_CFS __retVal__L = LcSettingSetFloatElem(setting, idx, value);
550 if (__retVal__L == NULL) {
551 throw MkInitSoftError("LcSettingC::SetFloatElem");
552 }
553 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
554 }
555
558 MK_UNUSED auto setting = getCFS();
559 LC_CFS __retVal__L = LcSettingSetInt64Elem(setting, idx, value);
560 if (__retVal__L == NULL) {
561 throw MkInitSoftError("LcSettingC::SetInt64Elem");
562 }
563 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
564 }
565
568 MK_UNUSED auto setting = getCFS();
569 LC_CFS __retVal__L = LcSettingSetIntElem(setting, idx, value);
570 if (__retVal__L == NULL) {
571 throw MkInitSoftError("LcSettingC::SetIntElem");
572 }
573 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
574 }
575
578 MK_UNUSED auto setting = getCFS();
579 LC_CFS __retVal__L = LcSettingSetStringElem(setting, idx, value);
580 if (__retVal__L == NULL) {
581 throw MkInitSoftError("LcSettingC::SetStringElem");
582 }
583 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
584 }
585
587 inline LcSettingC* LcSettingC::SetStringElem (MK_I32 idx, const std::string& value) {
588 MK_UNUSED auto setting = getCFS();
589 const MK_STRN value_hdl = value.c_str();
590 LC_CFS __retVal__L = LcSettingSetStringElem(setting, idx, value_hdl);
591 if (__retVal__L == NULL) {
592 throw MkInitSoftError("LcSettingC::SetStringElem");
593 }
594 return LcSettingC::LcSettingC_ObjNew(MK_RT_CALL __retVal__L);
595 }
596
597 // doc-key: LcSettingC,LcSettingC-Set,om_
598
600 inline void LcSettingC::SetBool (MK_BOOL value) {
601 MK_UNUSED auto setting = getCFS();
602 enum MkErrorE errVal = LcSettingSetBool(setting, value);
603 MkErrorC_Check(setting, errVal);
604 }
605
607 inline void LcSettingC::SetFloat (MK_DBL value) {
608 MK_UNUSED auto setting = getCFS();
609 enum MkErrorE errVal = LcSettingSetFloat(setting, value);
610 MkErrorC_Check(setting, errVal);
611 }
612
615 MK_UNUSED auto setting = getCFS();
616 enum MkErrorE errVal = LcSettingSetFormat(setting, format);
617 MkErrorC_Check(setting, errVal);
618 }
619
621 inline void LcSettingC::SetInt (MK_I32 value) {
622 MK_UNUSED auto setting = getCFS();
623 enum MkErrorE errVal = LcSettingSetInt(setting, value);
624 MkErrorC_Check(setting, errVal);
625 }
626
628 inline void LcSettingC::SetInt64 (MK_I64 value) {
629 MK_UNUSED auto setting = getCFS();
630 enum MkErrorE errVal = LcSettingSetInt64(setting, value);
631 MkErrorC_Check(setting, errVal);
632 }
633
635 inline void LcSettingC::SetString (MK_STRN value) {
636 MK_UNUSED auto setting = getCFS();
637 enum MkErrorE errVal = LcSettingSetString(setting, value);
638 MkErrorC_Check(setting, errVal);
639 }
640
642 inline void LcSettingC::SetString (const std::string& value) {
643 MK_UNUSED auto setting = getCFS();
644 const MK_STRN value_hdl = value.c_str();
645 enum MkErrorE errVal = LcSettingSetString(setting, value_hdl);
646 MkErrorC_Check(setting, errVal);
647 }
648
650 // LcSettingC_Set_CC_API
651
655
656 // doc-key: LcSettingC,LcSettingC-TOR,oC_
657
660 MK_UNUSED auto parent = getCFS();
661 LC_CFS __retVal__L = LcSettingAdd(parent, name, __type);
662 if (__retVal__L == NULL) {
663 throw MkInitError("LcSettingC::Add");
664 }
665 return LcSettingC::LcSettingC_ObjCreate(MK_RT_CALL __retVal__L);
666 }
667
669 inline LcSettingC* LcSettingC::Add (const std::string& name, LcConfigTypeE __type) {
670 MK_UNUSED auto parent = getCFS();
671 const MK_STRN name_hdl = name.c_str();
672 LC_CFS __retVal__L = LcSettingAdd(parent, name_hdl, __type);
673 if (__retVal__L == NULL) {
674 throw MkInitError("LcSettingC::Add");
675 }
676 return LcSettingC::LcSettingC_ObjCreate(MK_RT_CALL __retVal__L);
677 }
678
679 // doc-key: LcSettingC,LcSettingC-TOR,oc_
680
683 MK_UNUSED auto setting = getCFSN();
684 LC_CFG __retVal__L = LcSettingGetConfig(setting);
685 return LcConfigC::LcConfigC_ObjNew(MK_RT_CALL __retVal__L);
686 }
687
689 // LcSettingC_TOR_CC_API
690
691 // END-LcSettingC - created by 'cc_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
692
693} // END - namespace "cclcconfig"
Struct to represent the data from the LcConfigC … → C-API: liblcconfig::LcConfigS
Struct to represent the data from the LcSettingC … → C-API: liblcconfig::LcSettingS
static LcConfigC * LcConfigC_ObjNew(MK_RT_ARGS LC_CFG hdl)
return LcConfigC from LibMsgqueObject
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
LC_CFS getCFS() const
return the LibMsgqueObject from current LcSettingC instance
LC_CFSN getCFSN() const
(const) return the LibMsgqueObject from current LcSettingC instance
static LcSettingC * LcSettingC_ObjNew(MK_RT_ARGS LC_CFS hdl)
return LcSettingC from LibMsgqueObject
static LcSettingC * GetNull()
C++: [static] LcSettingC* LcSettingC::GetNull() → C-API Null-Slot - return a LcSettingC typed NU...
LcSettingC * Prev()
C++: LcSettingC* cfs.Prev() → C-API get previous instance from linked-list of LcSettingS type
LcSettingC * Next()
C++: LcSettingC* cfs.Next() → C-API get next instance from linked-list of LcSettingS type
static LcSettingC * HandleResolve(MK_HDL netHdl)
C++: [static] LcSettingC* LcSettingC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot -...
static LcSettingC * Instances()
C++: [static] LcSettingC* LcSettingC::Instances() → C-API get head-instance from linked-list of ...
#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 …
MK_I64 GetInt64() const
C++: MK_I64 setting.GetInt64() → C-API These functions return the value of the given setting …
LcSettingC * GetElem(MK_I32 idx) const
C++: LcSettingC* setting.GetElem(MK_I32 idx) → C-API This function fetches the element at the g...
MK_STRN GetString() const
C++: MK_STRN setting.GetString() → C-API These functions return the value of the given setting ...
MK_I32 GetIntElem(MK_I32 idx) const
C++: MK_I32 setting.GetIntElem(MK_I32 idx) → C-API These functions return the value at the spec...
MK_STRN GetStringElem(MK_I32 idx) const
C++: MK_STRN setting.GetStringElem(MK_I32 idx) → C-API These functions return the value at the ...
LcSettingC * GetMember(MK_STRN name) const
C++: LcSettingC* setting.GetMember(MK_STRN name) → C-API This function fetches the child settin...
MK_I64 GetInt64Elem(MK_I32 idx) const
C++: MK_I64 setting.GetInt64Elem(MK_I32 idx) → C-API These functions return the value at the sp...
MK_DBL GetFloat() const
C++: MK_DBL setting.GetFloat() → C-API These functions return the value of the given setting …
MK_BOOL GetBoolElem(MK_I32 idx) const
C++: MK_BOOL setting.GetBoolElem(MK_I32 idx) → C-API These functions return the value at the sp...
MK_DBL GetFloatElem(MK_I32 idx) const
C++: MK_DBL setting.GetFloatElem(MK_I32 idx) → C-API These functions return the value at the sp...
MK_I32 GetInt() const
C++: MK_I32 setting.GetInt() → C-API These functions return the value of the given setting …
MK_BOOL GetBool() const
C++: MK_BOOL setting.GetBool() → C-API These functions return the value of the given setting …
LcConfigFormatE GetFormat() const
C++: LcConfigFormatE setting.GetFormat() → C-API These functions get and set the external forma...
static MK_STRN LcSettingGetString(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_DBL LcSettingGetFloat(LC_CFSN setting)
These functions return the value of the given 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 MK_DBL LcSettingGetFloatElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
static MK_I64 LcSettingGetInt64(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 enum LcConfigFormatE LcSettingGetFormat(LC_CFSN setting)
These functions get and set the external format for the setting 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 LC_CFS LcSettingGetMember(LC_CFSN setting, MK_STRN name)
This function fetches the child setting named name from the group setting …
static MK_I32 LcSettingGetInt(LC_CFSN setting)
These functions return the value of the given setting …
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 …
MK_BOOL IsNumber() const
C++: MK_BOOL setting.IsNumber() → C-API These convenience functions, some of which are implemen...
MK_BOOL IsArray() const
C++: MK_BOOL setting.IsArray() → C-API These convenience functions, which are implemented as ma...
MK_BOOL IsAggregate() const
C++: MK_BOOL setting.IsAggregate() → C-API These convenience functions, some of which are imple...
MK_BOOL IsList() const
C++: MK_BOOL setting.IsList() → C-API These convenience functions, which are implemented as mac...
MK_BOOL IsGroup() const
C++: MK_BOOL setting.IsGroup() → C-API These convenience functions, which are implemented as ma...
MK_BOOL IsRoot() const
C++: MK_BOOL setting.IsRoot() → C-API This function returns CONFIG_TRUE if the given setting is...
MK_BOOL IsScalar() const
C++: MK_BOOL setting.IsScalar() → C-API These convenience functions, some of which are implemen...
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 LcSettingIsScalar(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 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 LcSettingIsArray(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
MK_BOOL LookupBool(MK_STRN name) const
C++: MK_BOOL setting.LookupBool(MK_STRN name) → C-API These functions look up the value of the ...
LcSettingC * Lookup(MK_STRN path)
C++: LcSettingC* setting.Lookup(MK_STRN path) → C-API This function locates a setting by a path...
MK_DBL LookupFloat(MK_STRN name) const
C++: MK_DBL setting.LookupFloat(MK_STRN name) → C-API These functions look up the value of the ...
MK_I32 LookupInt(MK_STRN name) const
C++: MK_I32 setting.LookupInt(MK_STRN name) → C-API These functions look up the value of the ch...
MkBufferListC * LookupAll() const
C++: MkBufferListC* setting.LookupAll() → C-API addon - read an entire configuration below sett...
MK_STRN LookupString(MK_STRN name) const
C++: MK_STRN setting.LookupString(MK_STRN name) → C-API These functions look up the value of th...
MK_I64 LookupInt64(MK_STRN name) const
C++: MK_I64 setting.LookupInt64(MK_STRN name) → C-API These functions look up the value of the ...
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …
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 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 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 …
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 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 …
MK_I32 Length() const
C++: MK_I32 setting.Length() → C-API This function returns the number of settings in a group,...
MK_STRN SourceFile() const
C++: MK_STRN setting.SourceFile() → C-API This function returns the name of the file from which...
void RemoveElem(MK_I32 idx)
C++: parent.RemoveElem(MK_I32 idx) → C-API This function removes the child setting at the given...
void Remove(MK_STRN name)
C++: parent.Remove(MK_STRN name) → C-API This function removes and destroys the setting named n...
LcConfigTypeE Type() const
C++: LcConfigTypeE setting.Type() → C-API This function returns the type of the given setting …
MK_I32 SourceLine() const
C++: MK_I32 setting.SourceLine() → C-API This function returns the line number of the configura...
MK_I32 Index() const
C++: MK_I32 setting.Index() → C-API This function returns the index of the given setting within...
MK_STRN Name() const
C++: MK_STRN setting.Name() → C-API This function returns the name of the given setting,...
LcSettingC * Parent() const
C++: LcSettingC* setting.Parent() → C-API This function returns the parent setting of the given...
LcSettingC * AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype)
C++: LcSettingC* setting.AddIfNotExists(MK_STRN name, LcConfigTypeE cfgtype) → C-API addon - ad...
MK_BOOL Exists(MK_STRN name)
C++: MK_BOOL setting.Exists(MK_STRN name) → C-API addon - return true if name exists in the set...
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 enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
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 bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
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 enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …
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 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 LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...
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 MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
void SetFormat(LcConfigFormatE format)
C++: setting.SetFormat(LcConfigFormatE format) → C-API These functions get and set the external...
LcSettingC * SetStringElem(MK_I32 idx, MK_STRN value)
C++: LcSettingC* setting.SetStringElem(MK_I32 idx, MK_STRN value) → C-API These functions set t...
void SetFloat(MK_DBL value)
C++: setting.SetFloat(MK_DBL value) → C-API These functions set the value of the given setting ...
LcSettingC * SetFloatElem(MK_I32 idx, MK_DBL value)
C++: LcSettingC* setting.SetFloatElem(MK_I32 idx, MK_DBL value) → C-API These functions set the...
void SetBool(MK_BOOL value)
C++: setting.SetBool(MK_BOOL value) → C-API These functions set the value of the given setting ...
void SetString(MK_STRN value)
C++: setting.SetString(MK_STRN value) → C-API These functions set the value of the given settin...
void SetInt(MK_I32 value)
C++: setting.SetInt(MK_I32 value) → C-API These functions set the value of the given setting to...
LcSettingC * SetInt64Elem(MK_I32 idx, MK_I64 value)
C++: LcSettingC* setting.SetInt64Elem(MK_I32 idx, MK_I64 value) → C-API These functions set the...
LcSettingC * SetIntElem(MK_I32 idx, MK_I32 value)
C++: LcSettingC* setting.SetIntElem(MK_I32 idx, MK_I32 value) → C-API These functions set the v...
LcSettingC * SetBoolElem(MK_I32 idx, MK_I32 value)
C++: LcSettingC* setting.SetBoolElem(MK_I32 idx, MK_I32 value) → C-API These functions set the ...
void SetInt64(MK_I64 value)
C++: setting.SetInt64(MK_I64 value) → C-API These functions set the value of the given 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 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 enum MkErrorE LcSettingSetFormat(LC_CFS setting, enum LcConfigFormatE format)
These functions get and set the external format for the setting setting …
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 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 LcSettingSetString(LC_CFS setting, MK_STRN 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 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 LcSettingSetInt(LC_CFS setting, MK_I32 value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetFloat(LC_CFS setting, MK_DBL value)
These functions set the value of the given setting to value …
LcConfigC * GetConfig() const
C++: LcConfigC* setting.GetConfig() → C-API addon - return the LcConfigC from the LcSettingC …
LcSettingC * Add(MK_STRN name, LcConfigTypeE __type)
C++: [constructor] LcSettingC* parent.Add(MK_STRN name, LcConfigTypeE __type) → C-API This funct...
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,...
static MkBufferListC * MkBufferListC_ObjNew(MK_RT_ARGS MK_BFL hdl)
#define MK_UNUSED
double MK_DBL
signed long long MK_I64
int32_t MK_HDL
signed int MK_I32
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_NULL
namespace for the CcLcConfig "C++"-API
Definition LcCall_cc.cc:21
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …