theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_tcl.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "LibMkKernel_tcl.h"
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 'tcl_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_TCL_EXTERN
33#if defined(META_IGNORE_EXTERN)
34# define LC_TCL_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_TCL_BUILD_DLL)
40# define LC_TCL_EXTERN __declspec(dllexport)
41# else
42# define LC_TCL_EXTERN __declspec(dllimport)
43# endif
44# else
45 // no DLL - architecture specific extern specifier
46# define LC_TCL_EXTERN __attribute__ ((visibility("default")))
47# endif
48#else
50# define LC_TCL_EXTERN
51#endif
52
53// external data lookup
54#undef LC_TCL_EXTERN_DATA
55#if defined(META_PRIVATE)
56# define LC_TCL_EXTERN_DATA extern
57#elif defined(META_IGNORE_EXTERN)
58# define LC_TCL_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_TCL_BUILD_DLL)
64# define LC_TCL_EXTERN_DATA __declspec(dllexport)
65# else
66# define LC_TCL_EXTERN_DATA __declspec(dllimport)
67# endif
68# else
69 // no DLL - architecture specific extern specifier
70# define LC_TCL_EXTERN_DATA __attribute__ ((visibility("default"))) extern
71# endif
72#else
73# define LC_TCL_EXTERN_DATA extern
74#endif
75
76#undef LC
77#define LC(n) tcllcconfig_ ## n
78#undef NS
79#define NS(n) tcllcconfig_ ## n
80
81// END-HEADER - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
82
83// BEGIN-Class-def - created by 'tcl_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 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
91
92/*****************************************************************************/
93/* */
94/* check */
95/* */
96/*****************************************************************************/
97
99
100/*****************************************************************************/
101/* */
102/* Class_API */
103/* */
104/*****************************************************************************/
105
106// BEGIN-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
107
108// ----------------------------------------------------------------------
109// class: LcConfigC
110
111 #define LcConfigC_lngO LC(LcConfigC)
114
115 int LC(pLcConfigC_Init) (MK_RT_ARGS OT_ENV_T, OT_NS_T );
116
117 #define OT_retObj_SET_CFG(nat) retObj = LC(LcConfigC_ObjNew) (MK_RT_CALL interp,nat)
118
119 #define OT_TMP_CFG_OBJ(val) LC(LcConfigC_ObjNew) (MK_RT_CALL interp,val)
120
123 return ( hdl ? MK(AtomObjNew) (MK_RT_CALL interp, LcConfigC_X2obj(hdl)) : LC(LcConfigC_MK_NULL) );
124 }
125
126// ----------------------------------------------------------------------
127// class: LcSettingC
128
129 #define LcSettingC_lngO LC(LcSettingC)
132
133 int LC(pLcSettingC_Init) (MK_RT_ARGS OT_ENV_T, OT_NS_T );
134
135 #define OT_retObj_SET_CFS(nat) retObj = LC(LcSettingC_ObjNew) (MK_RT_CALL interp,nat)
136
137 #define OT_TMP_CFS_OBJ(val) LC(LcSettingC_ObjNew) (MK_RT_CALL interp,val)
138
141 return ( hdl ? MK(AtomObjNew) (MK_RT_CALL interp, LcSettingC_X2obj(hdl)) : LC(LcSettingC_MK_NULL) );
142 }
143
144// END-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
145
146/*****************************************************************************/
147/* */
148/* functions */
149/* */
150/*****************************************************************************/
151
152#define OT_get_CFS_from_NAT(_nat) LcGetCfsFromNat(_nat)
153#define OT_get_CFG_from_NAT(_nat) LcGetCfgFromNat(_nat)
154
155enum MkErrorE MK_DECL NS(ConfigIncludeCall) ( LcConfigIncludeCallF_ARGS );
156void MK_DECL NS(ConfigIncludeFree) ( LcConfigIncludeFreeF_ARGS );
157
158enum MkErrorE MK_DECL NS(SettingDeleteCall) ( LcSettingDeleteCallF_ARGS );
159void MK_DECL NS(SettingDeleteFree) ( LcSettingDeleteFreeF_ARGS );
160
161/*****************************************************************************/
162/* */
163/* enum */
164/* */
165/*****************************************************************************/
166
167// BEGIN-enum - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
168
169LC_TCL_EXTERN int MK_DECL LC(Get_LcConfigFormatE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret);
170#define Get_LcConfigFormatE_FromObj_path LC(Get_LcConfigFormatE_FromObj)
171
172LC_TCL_EXTERN int MK_DECL LC(Get_LcConfigOptionsEF_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigOptionsEF *ret);
173#define Get_LcConfigOptionsEF_FromObj_path LC(Get_LcConfigOptionsEF_FromObj)
174
175LC_TCL_EXTERN int MK_DECL LC(Get_LcConfigTypeE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigTypeE *ret);
176#define Get_LcConfigTypeE_FromObj_path LC(Get_LcConfigTypeE_FromObj)
177
178LC_TCL_EXTERN int MK_DECL LC(Get_LcErrorE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorE *ret);
179#define Get_LcErrorE_FromObj_path LC(Get_LcErrorE_FromObj)
180
181LC_TCL_EXTERN int MK_DECL LC(Get_LcErrorTypeE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorTypeE *ret);
182#define Get_LcErrorTypeE_FromObj_path LC(Get_LcErrorTypeE_FromObj)
183
184// END-enum - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
185
186// BEGIN-enum-tostring - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
187
188#define OT_NEW_Lc_enum_OBJ(typ,val) LC(Lc ## typ ## _ToString(val))
189
191
193
195
197
199
200// END-enum-tostring - created by 'tcl_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
201
202#undef HEADER
tag: nhi1-release-250425
#define NS(n)
#define LC_TCL_EXTERN
static library
#define LC(n)
#define LC_TCL_EXTERN_DATA
tag: nhi1-release-250425
#define MK(n)
Tcl_Class OT_CLS_T
Tcl_Namespace * OT_NS_T
Tcl_Interp * OT_ENV_T
Tcl_Obj * OT_OBJ_T
#define LcSettingDeleteFreeF_ARGS
#define LcConfigIncludeFreeF_ARGS
#define LcConfigIncludeCallF_ARGS
#define LcSettingDeleteCallF_ARGS
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)
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 …
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_DECL
#define mk_inline
#define MK_ARTIFICIAL
MkErrorE
#define MkThreadLocal
#define MK_RT_CALL
#define MK_RT_ARGS
tag: nhi1-release-250425