theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_rb.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "LibMkKernel_rb.h"
12#include "LibLcConfig_lc.h"
13
14/*****************************************************************************/
15/* */
16/* Macro_API */
17/* */
18/*****************************************************************************/
19
20// BEGIN-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
21
22#undef HEADER
23#define HEADER
24
25// If the source of liblcconfig is direct used in an external library
26// (without dynamic linking) and this library should *not* export
27// the symbol's of liblcconfig then the flag META_IGNORE_EXTERN have
28// to be set
29#undef LC_RB_EXTERN
30#if defined(META_IGNORE_EXTERN)
31# define LC_RB_EXTERN
32#elif defined(PIC)
33 // does we build a DLL ?
34# if defined(DLL_EXPORT)
35 // does we build the liblcconfig library ?
36# if defined(LC_RB_BUILD_DLL)
37# define LC_RB_EXTERN __declspec(dllexport)
38# else
39# define LC_RB_EXTERN __declspec(dllimport)
40# endif
41# else
42 // no DLL - architecture specific extern specifier
43# define LC_RB_EXTERN __attribute__ ((visibility("default")))
44# endif
45#else
47# define LC_RB_EXTERN
48#endif
49
50// external data lookup
51#undef LC_RB_EXTERN_DATA
52#if defined(META_PRIVATE)
53# define LC_RB_EXTERN_DATA extern
54#elif defined(META_IGNORE_EXTERN)
55# define LC_RB_EXTERN_DATA extern
56#elif defined(PIC)
57 // does we build a DLL ?
58# if defined(DLL_EXPORT)
59 // does we build the liblcconfig library ?
60# if defined(LC_RB_BUILD_DLL)
61# define LC_RB_EXTERN_DATA __declspec(dllexport)
62# else
63# define LC_RB_EXTERN_DATA __declspec(dllimport)
64# endif
65# else
66 // no DLL - architecture specific extern specifier
67# define LC_RB_EXTERN_DATA __attribute__ ((visibility("default"))) extern
68# endif
69#else
70# define LC_RB_EXTERN_DATA extern
71#endif
72
73#undef LC
74#define LC(n) rblcconfig_ ## n
75#undef NS
76#define NS(n) rblcconfig_ ## n
77
78// END-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
79
80#undef OT_PKG
81#define OT_PKG LC(LcConfig)
82
83#include "tmpl/lc_type_S_lng.h"
85
86/*****************************************************************************/
87/* */
88/* Class_API */
89/* */
90/*****************************************************************************/
91
93
94// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
95
96// ----------------------------------------------------------------------
97// class: LcConfigC
98
100 #define LcConfigC_lngO LC(LcConfigC)
101 #define LcConfigC_base MK(MkObjectC)
102
103 // MK_NULL singelton
105 #define LcConfigC_MK_NULL LC(LcConfigC_MK_NULL)
106
107 // arguments
108 #define LcConfigC_ARGS LNG_ARGS
109 #define LcConfigC_ARGS_CALL LNG_ARGS_CALL
110
111 // return object
112 #define OT_retObj_SET_CFG(nat) retObj = LC(LcConfigC_ObjNew) (MK_RT_CALL nat)
113
114 // new object
115 #define OT_TMP_CFG_OBJ(val) LC(LcConfigC_ObjNew)(MK_RT_CALL val)
120
121 // cast from LNG to MQ
122 #define VAL2CFG(val) ((LC_CFG)DATA_PTR(val))
123
124// ----------------------------------------------------------------------
125// class: LcSettingC
126
128 #define LcSettingC_lngO LC(LcSettingC)
129 #define LcSettingC_base MK(MkObjectC)
130
131 // MK_NULL singelton
133 #define LcSettingC_MK_NULL LC(LcSettingC_MK_NULL)
134
135 // arguments
136 #define LcSettingC_ARGS LNG_ARGS
137 #define LcSettingC_ARGS_CALL LNG_ARGS_CALL
138
139 // return object
140 #define OT_retObj_SET_CFS(nat) retObj = LC(LcSettingC_ObjNew) (MK_RT_CALL nat)
141
142 // new object
143 #define OT_TMP_CFS_OBJ(val) LC(LcSettingC_ObjNew)(MK_RT_CALL val)
148
149 // cast from LNG to MQ
150 #define VAL2CFS(val) ((LC_CFS)DATA_PTR(val))
151
152// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
153
154/*****************************************************************************/
155/* */
156/* Enum_API */
157/* */
158/*****************************************************************************/
159
160#define OT_NEW_Lc_enum_OBJ(typ,i) MK(OtNewInstanceWithOneArg)(LC(Lc##typ),INT2VAL(i))
161
162// BEGIN-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
163
169
170// END-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
171
172
173#undef HEADER
tag: nhi1-release-250425
#define LcConfigC_MK_NULL
#define LC_RB_EXTERN_DATA
#define LcSettingC_MK_NULL
#define LC(n)
tag: nhi1-release-250425
#define MK(n)
#define OT_CLS_T
#define OT_OBJ_T
static MK_ARTIFICIAL LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define LcConfigC_type
same as LcConfigS but useable in a class-macro as: class##_type …
#define LcConfigC_X2obj(x)
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:188
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
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
#define LcSettingC_type
same as LcSettingS but useable in a class-macro as: class##_type …
#define LcSettingC_X2obj(x)
#define mk_inline
#define MK_ARTIFICIAL
#define MK_RT_CALL
#define MK_RT_ARGS
tag: nhi1-release-250425
tag: nhi1-release-250425