theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_atl.h
Go to the documentation of this file.
1
9#pragma once
10
12#include "LibLcConfig_lc.h"
13
14#undef LC_DOC
15#define LC_DOC __doc
16
17/*****************************************************************************/
18/* */
19/* Macro_API */
20/* */
21/*****************************************************************************/
22
23// BEGIN-HEADER - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
24
25#undef HEADER
26#define HEADER
27
28// If the source of liblcconfig is direct used in an external library
29// (without dynamic linking) and this library should *not* export
30// the symbol's of liblcconfig then the flag META_IGNORE_EXTERN have
31// to be set
32#undef LC_ATL_EXTERN
33#if defined(META_IGNORE_EXTERN)
34# define LC_ATL_EXTERN
35#elif defined(PIC)
36 // does we build a DLL ?
37# if defined(DLL_EXPORT)
38 // does we build the liblcconfig library ?
39# if defined(LC_ATL_BUILD_DLL)
40# define LC_ATL_EXTERN __declspec(dllexport)
41# else
42# define LC_ATL_EXTERN __declspec(dllimport)
43# endif
44# else
45 // no DLL - architecture specific extern specifier
46# define LC_ATL_EXTERN __attribute__ ((visibility("default")))
47# endif
48#else
50# define LC_ATL_EXTERN
51#endif
52
53// external data lookup
54#undef LC_ATL_EXTERN_DATA
55#if defined(META_PRIVATE)
56# define LC_ATL_EXTERN_DATA extern
57#elif defined(META_IGNORE_EXTERN)
58# define LC_ATL_EXTERN_DATA extern
59#elif defined(PIC)
60 // does we build a DLL ?
61# if defined(DLL_EXPORT)
62 // does we build the liblcconfig library ?
63# if defined(LC_ATL_BUILD_DLL)
64# define LC_ATL_EXTERN_DATA __declspec(dllexport)
65# else
66# define LC_ATL_EXTERN_DATA __declspec(dllimport)
67# endif
68# else
69 // no DLL - architecture specific extern specifier
70# define LC_ATL_EXTERN_DATA __attribute__ ((visibility("default"))) extern
71# endif
72#else
73# define LC_ATL_EXTERN_DATA extern
74#endif
75
76#undef LC
77#define LC(n) atllcconfig_ ## n
78#undef NS
79#define NS(n) atllcconfig_ ## n
80
81// END-HEADER - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
82
83// BEGIN-Class-def - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
84
85#define LcConfigC_ARGS OBJECT_ARGS
86#define LcConfigC_ARGS_CALL OBJECT_ARGS_CALL
87#define LcSettingC_ARGS OBJECT_ARGS
88#define LcSettingC_ARGS_CALL OBJECT_ARGS_CALL
89
90// END-Class-def - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
91
92/*****************************************************************************/
93/* */
94/* check */
95/* */
96/*****************************************************************************/
97
99
100// LNG ******************************************************************************
101// MARK_R
102
104#define OT_LC_RT_SIG 0x17254309
105
106typedef struct {
108// OT_MK_RT_StatusE status;
112
113 #define regTclObj(t) OT_OBJ_T t;
114 #define regTclObj2(t,v) OT_OBJ_T t;
115 #define regTclCmd(t) OT_OBJ_T t;
116 #define regTclArray(m,t) OT_OBJ_T t[m];
118 #undef regTclArray
119 #undef regTclCmd
120 #undef regTclObj
121 #undef regTclObj2
122
123 // BEGIN-CLASS-rt - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
124
133
134 // END-CLASS-rt - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
135
136} OT_LC_RT_S;
138
140
141#define OT_LC_ARGS OT_LC_RT_T alcrt, OT_MK_RT_T amkrt, OT_ENV_T interp, MK_RT_ARGS
142#define OT_LC_CALL alcrt, amkrt, interp, MK_RT_CALL
143
144// #define LC_SETUP_alcrt(r) MK_UNUSED OT_LC_RT_T alcrt = (r) ? (r) : &alcrtR;
145// #define LC_SETUP_interp MK_UNUSED OT_ENV_T interp = alcrt->interp;
146
147#define SETUP_alcrt_2(r) MK_UNUSED OT_LC_RT_T alcrt = (r) ? (r) : &alcrtR; \
148 assert(alcrt && alcrt->signature == OT_LC_RT_SIG); \
149 MK_UNUSED OT_MK_RT_T amkrt = alcrt->amkrt; \
150 assert(amkrt && amkrt->signature == OT_MK_RT_SIG); \
151 MK_UNUSED OT_ENV_T interp = alcrt->interp; \
152 MK_UNUSED MOX_RT_T moxrt = amkrt->moxrt; \
153 assert(moxrt && moxrt->signature == MOX_RT_SIG);
154
155#define SETUP_alcrt(r) SETUP_alcrt_2(r)
156
157/*****************************************************************************/
158/* */
159/* Class_API */
160/* */
161/*****************************************************************************/
162
163// BEGIN-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
164
165// ----------------------------------------------------------------------
166// class: LcConfigC
167
168 #define LcConfigC_rt (*alcrt)
169 #define LcConfigC_lngO (LcConfigC_rt.AtlLcConfigC)
170 #undef LcConfigCTT
171 #define LcConfigCTT (LcConfigC_rt.AtlLcConfigCTT)
172
173 int LC(pLcConfigC_Init) (OT_LC_ARGS OT_NS_T);
174
175 #define LcConfigC_ObjNew(nat) LC(LcConfigC_ObjNew) (OT_LC_CALL nat)
176 #define OT_TMP_CFG_OBJ(nat) LcConfigC_ObjNew (nat)
177 #define OT_retObj_SET_CFG(nat) retObj = LcConfigC_ObjNew (nat)
178
181 return ( hdl ? MK(AtomObjNew) (OT_MK_CALL LcConfigC_X2obj(hdl), alcrt) : LcConfigC_rt.AtlLcConfigC_MK_NULL );
182 }
183
184// ----------------------------------------------------------------------
185// class: LcSettingC
186
187 #define LcSettingC_rt (*alcrt)
188 #define LcSettingC_lngO (LcSettingC_rt.AtlLcSettingC)
189 #undef LcSettingCTT
190 #define LcSettingCTT (LcSettingC_rt.AtlLcSettingCTT)
191
192 int LC(pLcSettingC_Init) (OT_LC_ARGS OT_NS_T);
193
194 #define LcSettingC_ObjNew(nat) LC(LcSettingC_ObjNew) (OT_LC_CALL nat)
195 #define OT_TMP_CFS_OBJ(nat) LcSettingC_ObjNew (nat)
196 #define OT_retObj_SET_CFS(nat) retObj = LcSettingC_ObjNew (nat)
197
200 return ( hdl ? MK(AtomObjNew) (OT_MK_CALL LcSettingC_X2obj(hdl), alcrt) : LcSettingC_rt.AtlLcSettingC_MK_NULL );
201 }
202
203// END-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
204
205/*****************************************************************************/
206/* */
207/* functions */
208/* */
209/*****************************************************************************/
210
211#define OT_get_CFS_from_NAT(_nat) LcGetCfsFromNat(_nat)
212#define OT_get_CFG_from_NAT(_nat) LcGetCfgFromNat(_nat)
213
214enum MkErrorE MK_DECL NS(ConfigIncludeCall) ( LcConfigIncludeCallF_ARGS );
215void MK_DECL NS(ConfigIncludeFree) ( LcConfigIncludeFreeF_ARGS );
216
217enum MkErrorE MK_DECL NS(SettingDeleteCall) ( LcSettingDeleteCallF_ARGS );
218void MK_DECL NS(SettingDeleteFree) ( LcSettingDeleteFreeF_ARGS );
219
220/*****************************************************************************/
221/* */
222/* enum */
223/* */
224/*****************************************************************************/
225
226// BEGIN-enum - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
227
228LC_ATL_EXTERN int MK_DECL LC(Get_LcConfigFormatE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret);
229#define Get_LcConfigFormatE_FromObj_path LC(Get_LcConfigFormatE_FromObj)
230
231LC_ATL_EXTERN int MK_DECL LC(Get_LcConfigOptionsEF_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigOptionsEF *ret);
232#define Get_LcConfigOptionsEF_FromObj_path LC(Get_LcConfigOptionsEF_FromObj)
233
234LC_ATL_EXTERN int MK_DECL LC(Get_LcConfigTypeE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigTypeE *ret);
235#define Get_LcConfigTypeE_FromObj_path LC(Get_LcConfigTypeE_FromObj)
236
237LC_ATL_EXTERN int MK_DECL LC(Get_LcErrorE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorE *ret);
238#define Get_LcErrorE_FromObj_path LC(Get_LcErrorE_FromObj)
239
240LC_ATL_EXTERN int MK_DECL LC(Get_LcErrorTypeE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorTypeE *ret);
241#define Get_LcErrorTypeE_FromObj_path LC(Get_LcErrorTypeE_FromObj)
242
243// END-enum - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
244
245// BEGIN-enum-tostring - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
246
247#define OT_NEW_Lc_enum_OBJ(typ,val) LC(Lc ## typ ## _ToString(val))
248
250
252
254
256
258
259// END-enum-tostring - created by 'atl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
260
261#undef HEADER
#define OT_LC_ARGS
#define LcConfigC_ObjNew(nat)
#define NS(n)
#define LC_ATL_EXTERN
static library
#define LC(n)
OT_LC_RT_S * OT_LC_RT_T
#define LcSettingC_rt
__thread OT_LC_RT_S alcrtR
#define LcConfigC_rt
#define LcSettingC_ObjNew(nat)
tag: nhi1-release-250425
initialize the LcConfig package
tag: nhi1-release-250425
#define MK(n)
MOX_ENV_T OT_ENV_T
MOX_NS_T OT_NS_T
MOX_CLS_T OT_CLS_T
#define OT_MK_CALL
MOX_OBJ_T OT_OBJ_T
#define LcSettingDeleteFreeF_ARGS
#define LcConfigIncludeFreeF_ARGS
#define LcConfigIncludeCallF_ARGS
#define LcSettingDeleteCallF_ARGS
#define LcConfigC_type
same as LcConfigS but useable in a class-macro as: class##_type …
#define LcConfigC_X2obj(x)
#define LC_EXTERN_DATA
MK_STRN LcErrorE_ToString(enum LcErrorE value)
return the LcErrorE as string …
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
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
MK_STRN LcErrorTypeE_ToString(enum LcErrorTypeE value)
return the LcErrorTypeE as string …
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
MK_STRN LcConfigOptionsEF_ToString(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as string …
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …
#define LcSettingC_type
same as LcSettingS but useable in a class-macro as: class##_type …
#define LcSettingC_X2obj(x)
#define MK_DECL
#define mk_inline
#define MK_ARTIFICIAL
MkErrorE
unsigned int MK_SIG
#define MkThreadLocal
#define MK_RT_ARGS
tag: nhi1-release-250425
OT_CLS_T AtlLcSettingC
OT_MK_RT_T amkrt
OT_NS_T AtlLcSettingC_NS
OT_OBJ_T AtlLcSettingC_MK_NULL
OT_CLS_T AtlLcConfigC
MK_TYP AtlLcSettingCTT
MK_TYP AtlLcConfigCTT
OT_NS_T AtlLcConfigC_NS
OT_ENV_T interp
OT_OBJ_T AtlLcConfigC_MK_NULL