theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig.cs
Go to the documentation of this file.
1
12/* LABEL-NO */
13using System;
14using System.Threading;
15using System.Reflection;
16using System.Runtime.InteropServices;
17using csmkkernel;
18using cslcconfig;
19/* LABEL-END */
20
21using System.Collections.Generic;
22
23[assembly:AssemblyTitleAttribute("cslcconfig")]
24[assembly:AssemblyDescriptionAttribute("Programming-Language-Micro-Kernel for C#")]
25[assembly:AssemblyConfigurationAttribute("")]
26[assembly:AssemblyCompanyAttribute("IPN")]
27[assembly:AssemblyProductAttribute("cslcconfig")]
28[assembly:AssemblyCopyrightAttribute("Copyright (c) Andreas Otto 2022")]
29[assembly:AssemblyTrademarkAttribute("NHI1")]
30[assembly:AssemblyCultureAttribute("")]
31
32[assembly:AssemblyVersionAttribute("10.0.*")]
33[assembly:ComVisible(false)]
34[assembly:CLSCompliantAttribute(true)]
35
36// MARK_D ################################################################
37// -----------------------------------------------------------------------
38// documentation order
75// --------------------------------------------------------------------------------
76
77namespace cslcconfig {
78
81 public partial class LcConfig {
82
85
86 static LcConfig() {
87 // init libmqmsgque
88 LcConfig.LcSetupTmpl();
89 }
90
92
94 private static void SetupThread (IntPtr mkrt) {
95 // BEGIN-CLASS - created by 'cs_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
96
97 LcConfigC.SetupThreadCFG(mkrt);
98 LcSettingC.SetupThreadCFS(mkrt);
99
100 // END-CLASS - created by 'cs_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
101 }
102
103 private static void LcSetupTmpl () {
104 Lc.LcSetup();
105 Lc.LcSetupThreadCallback(SetupThread);
106 }
107
108 private static void LcCleanupTmpl () {
109 Lc.LcSetupThreadCallback(null);
110 Lc.LcCleanup();
111 }
112 } // END-LcConfig
113
114
115 // BEGIN-LcConfig - created by 'cs_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
116
117 public partial class LcConfig {
118
122
123 // doc-key: LcConfig,LcConfig-Enum,sco
124
126 public static LcConfigFormatE ConfigFormatE_FromInt (int value) {
127 LcConfigFormatE value_out;
128 MkErrorE errVal = Lc.LcConfigFormatE_FromInt(value, out value_out);
129 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
130 return value_out;
131 }
132
134 public static LcConfigOptionsEF ConfigOptionsEF_FromInt (int value) {
135 LcConfigOptionsEF value_out;
136 MkErrorE errVal = Lc.LcConfigOptionsEF_FromInt(value, out value_out);
137 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
138 return value_out;
139 }
140
142 public static LcConfigTypeE ConfigTypeE_FromInt (int value) {
143 LcConfigTypeE value_out;
144 MkErrorE errVal = Lc.LcConfigTypeE_FromInt(value, out value_out);
145 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
146 return value_out;
147 }
148
150 public static LcErrorE ErrorE_FromInt (int value) {
151 LcErrorE value_out;
152 MkErrorE errVal = Lc.LcErrorE_FromInt(value, out value_out);
153 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
154 return value_out;
155 }
156
158 public static LcErrorTypeE ErrorTypeE_FromInt (int value) {
159 LcErrorTypeE value_out;
160 MkErrorE errVal = Lc.LcErrorTypeE_FromInt(value, out value_out);
161 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
162 return value_out;
163 }
164
165 // doc-key: LcConfig,LcConfig-Enum,sm_
166
168 public static int ConfigFormatE_ToInt (LcConfigFormatE value) {
169 Int32 __retVal__L = Lc.LcConfigFormatE_ToInt(value);
170 return __retVal__L;
171 }
172
174 public static string ConfigFormatE_ToString (LcConfigFormatE value) {
175 IntPtr __retVal__L = Lc.LcConfigFormatE_ToString(value);
176 return Marshal.PtrToStringAnsi(__retVal__L);
177 }
178
180 public static int ConfigOptionsEF_ToInt (LcConfigOptionsEF value) {
181 Int32 __retVal__L = Lc.LcConfigOptionsEF_ToInt(value);
182 return __retVal__L;
183 }
184
186 public static string ConfigOptionsEF_ToString (LcConfigOptionsEF value) {
187 IntPtr __retVal__L = Lc.LcConfigOptionsEF_ToString(value);
188 return Marshal.PtrToStringAnsi(__retVal__L);
189 }
190
192 public static int ConfigTypeE_ToInt (LcConfigTypeE value) {
193 Int32 __retVal__L = Lc.LcConfigTypeE_ToInt(value);
194 return __retVal__L;
195 }
196
198 public static string ConfigTypeE_ToString (LcConfigTypeE value) {
199 IntPtr __retVal__L = Lc.LcConfigTypeE_ToString(value);
200 return Marshal.PtrToStringAnsi(__retVal__L);
201 }
202
204 public static int ErrorE_ToInt (LcErrorE value) {
205 Int32 __retVal__L = Lc.LcErrorE_ToInt(value);
206 return __retVal__L;
207 }
208
210 public static string ErrorE_ToString (LcErrorE value) {
211 IntPtr __retVal__L = Lc.LcErrorE_ToString(value);
212 return Marshal.PtrToStringAnsi(__retVal__L);
213 }
214
216 public static int ErrorTypeE_ToInt (LcErrorTypeE value) {
217 Int32 __retVal__L = Lc.LcErrorTypeE_ToInt(value);
218 return __retVal__L;
219 }
220
222 public static string ErrorTypeE_ToString (LcErrorTypeE value) {
223 IntPtr __retVal__L = Lc.LcErrorTypeE_ToString(value);
224 return Marshal.PtrToStringAnsi(__retVal__L);
225 }
226
228 // LcConfig_Enum_CS_API
229 }
230
231 public partial class LcConfig {
232
236
237 // doc-key: LcConfig,LcConfig-Setup,sm_
238
240 public static void Cleanup () {
241 LcCleanupTmpl();
242 }
243
245 public static void Setup () {
246 LcSetupTmpl();
247 }
248
250 // LcConfig_Setup_CS_API
251 }
252
253 // END-LcConfig - created by 'cs_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
254
255} // END - namespace "cslcconfig"
LcConfigC - the class known as lccfg or Config define the main-configuration-handle …
Definition LcConfigC.cs:416
LcConfig PACKAGE - the package is the toplevel structure of the cslcconfig …
LcSettingC - the class known as lccfs or Setting define a single config-setting …
static void Check(IntPtr ctx, MkErrorE err)
static string ErrorTypeE_ToString(LcErrorTypeE value)
C#: [static] string ErrorTypeE_ToString(LcErrorTypeE value) → C-API return the LcErrorTypeE as s...
static LcConfigOptionsEF ConfigOptionsEF_FromInt(int value)
C#: [static] LcConfigOptionsEF ConfigOptionsEF_FromInt(int value) → C-API return the LcConfigOpt...
static LcConfigTypeE ConfigTypeE_FromInt(int value)
C#: [static] LcConfigTypeE ConfigTypeE_FromInt(int value) → C-API return the LcConfigTypeE from ...
static string ConfigFormatE_ToString(LcConfigFormatE value)
C#: [static] string ConfigFormatE_ToString(LcConfigFormatE value) → C-API return the LcConfigFor...
static int ConfigTypeE_ToInt(LcConfigTypeE value)
C#: [static] int ConfigTypeE_ToInt(LcConfigTypeE value) → C-API return the LcConfigTypeE as inte...
static int ErrorE_ToInt(LcErrorE value)
C#: [static] int ErrorE_ToInt(LcErrorE value) → C-API return the LcErrorE as integer …
static LcConfigFormatE ConfigFormatE_FromInt(int value)
C#: [static] LcConfigFormatE ConfigFormatE_FromInt(int value) → C-API return the LcConfigFormatE...
static string ConfigOptionsEF_ToString(LcConfigOptionsEF value)
C#: [static] string ConfigOptionsEF_ToString(LcConfigOptionsEF value) → C-API return the LcConfi...
static LcErrorE ErrorE_FromInt(int value)
C#: [static] LcErrorE ErrorE_FromInt(int value) → C-API return the LcErrorE from integer …
static string ErrorE_ToString(LcErrorE value)
C#: [static] string ErrorE_ToString(LcErrorE value) → C-API return the LcErrorE as string …
static int ConfigFormatE_ToInt(LcConfigFormatE value)
C#: [static] int ConfigFormatE_ToInt(LcConfigFormatE value) → C-API return the LcConfigFormatE a...
static int ErrorTypeE_ToInt(LcErrorTypeE value)
C#: [static] int ErrorTypeE_ToInt(LcErrorTypeE value) → C-API return the LcErrorTypeE as integer...
static string ConfigTypeE_ToString(LcConfigTypeE value)
C#: [static] string ConfigTypeE_ToString(LcConfigTypeE value) → C-API return the LcConfigTypeE a...
static int ConfigOptionsEF_ToInt(LcConfigOptionsEF value)
C#: [static] int ConfigOptionsEF_ToInt(LcConfigOptionsEF value) → C-API return the LcConfigOptio...
static LcErrorTypeE ErrorTypeE_FromInt(int value)
C#: [static] LcErrorTypeE ErrorTypeE_FromInt(int value) → C-API return the LcErrorTypeE from int...
static void Cleanup()
C#: [static] Cleanup() → C-API cleanup cslcconfig internal memory …
static void Setup()
C#: [static] Setup() → C-API setup cslcconfig internal memory …
MkErrorE
LcConfigOptionsEF
→ C-API: LcConfigOptionsEF → C-API: LcConfigOptionsEF
LcConfigTypeE
→ C-API: LcConfigTypeE → C-API: LcConfigTypeE
LcErrorTypeE
→ C-API: LcErrorTypeE → C-API: LcErrorTypeE
LcErrorE
→ C-API: LcErrorE → C-API: LcErrorE
LcConfigFormatE
→ C-API: LcConfigFormatE → C-API: LcConfigFormatE