theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Lookup_CS_API

LcSettingC - various functions to lookup a settingMore...

+ Collaboration diagram for LcSettingC_Lookup_CS_API:

Functions

LcSettingC cslcconfig.LcSettingC.Lookup (string path)
  C#: LcSettingC setting.Lookup(string path) C-API
This function locates a setting by a path path relative to the setting setting
 
MkBufferListC cslcconfig.LcSettingC.LookupAll ()
  C#: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC
 
bool cslcconfig.LcSettingC.LookupBool (string name)
  C#: bool setting.LookupBool(string name) C-API
These functions look up the value of the child setting named name of the setting setting
 
double cslcconfig.LcSettingC.LookupFloat (string name)
  C#: double setting.LookupFloat(string name) C-API
These functions look up the value of the child setting named name of the setting setting
 
int cslcconfig.LcSettingC.LookupInt (string name)
  C#: int setting.LookupInt(string name) C-API
These functions look up the value of the child setting named name of the setting setting
 
long cslcconfig.LcSettingC.LookupInt64 (string name)
  C#: long setting.LookupInt64(string name) C-API
These functions look up the value of the child setting named name of the setting setting
 
string cslcconfig.LcSettingC.LookupString (string name)
  C#: string setting.LookupString(string name) C-API
These functions look up the value of the child setting named name of the setting setting
 

Detailed Description

LcSettingC - various functions to lookup a setting

Function Documentation

◆ Lookup()

LcSettingC cslcconfig.LcSettingC.Lookup ( string path)
inline

C#: LcSettingC setting.Lookup(string path) C-API
This function locates a setting by a path path relative to the setting setting

Definition at line 311 of file LcSettingC.cs.

311 {
312 IntPtr path_cstr = Marshal.StringToHGlobalAnsi(path);
313 IntPtr __retVal__L = Lc.LcSettingLookup(hdl, path_cstr);
314 Marshal.FreeHGlobal(path_cstr);
315 if (__retVal__L == IntPtr.Zero) {
316 throw new MkInitSoftError("LcSettingC.Lookup");
317 }
318 return LcSettingC.LcSettingC_ObjNew(__retVal__L);
319 }

◆ LookupAll()

MkBufferListC cslcconfig.LcSettingC.LookupAll ( )
inline

C#: MkBufferListC setting.LookupAll() C-API
addon - read an entire configuration below setting into MkBufferListC

Definition at line 322 of file LcSettingC.cs.

322 {
323 IntPtr __retVal__L = Lc.LcSettingLookupAll(hdl);
324 return MkBufferListC.MkBufferListC_ObjNew(__retVal__L);
325 }
static MkBufferListC MkBufferListC_ObjNew(IntPtr hdl)

◆ LookupBool()

bool cslcconfig.LcSettingC.LookupBool ( string name)
inline

C#: bool setting.LookupBool(string name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 330 of file LcSettingC.cs.

330 {
331 bool value_out;
332 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
333 MkErrorE errVal = Lc.LcSettingLookupBool(hdl, name_cstr, out value_out);
334 Marshal.FreeHGlobal(name_cstr);
335 MkErrorC.Check(hdl, errVal);
336 return value_out;
337 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE

◆ LookupFloat()

double cslcconfig.LcSettingC.LookupFloat ( string name)
inline

C#: double setting.LookupFloat(string name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 340 of file LcSettingC.cs.

340 {
341 Double value_out;
342 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
343 MkErrorE errVal = Lc.LcSettingLookupFloat(hdl, name_cstr, out value_out);
344 Marshal.FreeHGlobal(name_cstr);
345 MkErrorC.Check(hdl, errVal);
346 return value_out;
347 }

◆ LookupInt()

int cslcconfig.LcSettingC.LookupInt ( string name)
inline

C#: int setting.LookupInt(string name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 350 of file LcSettingC.cs.

350 {
351 Int32 value_out;
352 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
353 MkErrorE errVal = Lc.LcSettingLookupInt(hdl, name_cstr, out value_out);
354 Marshal.FreeHGlobal(name_cstr);
355 MkErrorC.Check(hdl, errVal);
356 return value_out;
357 }

◆ LookupInt64()

long cslcconfig.LcSettingC.LookupInt64 ( string name)
inline

C#: long setting.LookupInt64(string name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 360 of file LcSettingC.cs.

360 {
361 Int64 value_out;
362 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
363 MkErrorE errVal = Lc.LcSettingLookupInt64(hdl, name_cstr, out value_out);
364 Marshal.FreeHGlobal(name_cstr);
365 MkErrorC.Check(hdl, errVal);
366 return value_out;
367 }

◆ LookupString()

string cslcconfig.LcSettingC.LookupString ( string name)
inline

C#: string setting.LookupString(string name) C-API
These functions look up the value of the child setting named name of the setting setting

Definition at line 370 of file LcSettingC.cs.

370 {
371 IntPtr value_out;
372 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
373 MkErrorE errVal = Lc.LcSettingLookupString(hdl, name_cstr, out value_out);
374 Marshal.FreeHGlobal(name_cstr);
375 MkErrorC.Check(hdl, errVal);
376 return Marshal.PtrToStringAnsi(value_out);
377 }