theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Lookup_CS_API

LcConfigC - various functions to lookup config-dataMore...

+ Collaboration diagram for LcConfigC_Lookup_CS_API:

Functions

LcSettingC cslcconfig.LcConfigC.Lookup (string path)
  C#: LcSettingC config.Lookup(string path) C-API
This function locates the setting in the configuration config specified by the path path
 
bool cslcconfig.LcConfigC.LookupBool (string path)
  C#: bool config.LookupBool(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
double cslcconfig.LcConfigC.LookupFloat (string path)
  C#: double config.LookupFloat(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
int cslcconfig.LcConfigC.LookupInt (string path)
  C#: int config.LookupInt(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
long cslcconfig.LcConfigC.LookupInt64 (string path)
  C#: long config.LookupInt64(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 
string cslcconfig.LcConfigC.LookupString (string path)
  C#: string config.LookupString(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path
 

Detailed Description

LcConfigC - various functions to lookup config-data

Function Documentation

◆ Lookup()

LcSettingC cslcconfig.LcConfigC.Lookup ( string path)
inline

C#: LcSettingC config.Lookup(string path) C-API
This function locates the setting in the configuration config specified by the path path

Definition at line 223 of file LcConfigC.cs.

223 {
224 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
225 IntPtr __retVal__L = Lc.LcConfigLookup(hdl, path_cstr);
226 Marshal.FreeHGlobal(path_cstr);
227 return LcSettingC.LcSettingC_ObjNew(__retVal__L);
228 }

◆ LookupBool()

bool cslcconfig.LcConfigC.LookupBool ( string path)
inline

C#: bool config.LookupBool(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 233 of file LcConfigC.cs.

233 {
234 bool value_out;
235 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
236 MkErrorE errVal = Lc.LcConfigLookupBool(hdl, path_cstr, out value_out);
237 Marshal.FreeHGlobal(path_cstr);
238 MkErrorC.Check(hdl, errVal);
239 return value_out;
240 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE

◆ LookupFloat()

double cslcconfig.LcConfigC.LookupFloat ( string path)
inline

C#: double config.LookupFloat(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 243 of file LcConfigC.cs.

243 {
244 Double value_out;
245 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
246 MkErrorE errVal = Lc.LcConfigLookupFloat(hdl, path_cstr, out value_out);
247 Marshal.FreeHGlobal(path_cstr);
248 MkErrorC.Check(hdl, errVal);
249 return value_out;
250 }

◆ LookupInt()

int cslcconfig.LcConfigC.LookupInt ( string path)
inline

C#: int config.LookupInt(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 253 of file LcConfigC.cs.

253 {
254 Int32 value_out;
255 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
256 MkErrorE errVal = Lc.LcConfigLookupInt(hdl, path_cstr, out value_out);
257 Marshal.FreeHGlobal(path_cstr);
258 MkErrorC.Check(hdl, errVal);
259 return value_out;
260 }

◆ LookupInt64()

long cslcconfig.LcConfigC.LookupInt64 ( string path)
inline

C#: long config.LookupInt64(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 263 of file LcConfigC.cs.

263 {
264 Int64 value_out;
265 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
266 MkErrorE errVal = Lc.LcConfigLookupInt64(hdl, path_cstr, out value_out);
267 Marshal.FreeHGlobal(path_cstr);
268 MkErrorC.Check(hdl, errVal);
269 return value_out;
270 }

◆ LookupString()

string cslcconfig.LcConfigC.LookupString ( string path)
inline

C#: string config.LookupString(string path) C-API
These functions look up the value of the setting in the configuration config specified by the path path

Definition at line 273 of file LcConfigC.cs.

273 {
274 IntPtr value_out;
275 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
276 MkErrorE errVal = Lc.LcConfigLookupString(hdl, path_cstr, out value_out);
277 Marshal.FreeHGlobal(path_cstr);
278 MkErrorC.Check(hdl, errVal);
279 return Marshal.PtrToStringAnsi(value_out);
280 }