theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_CS_API

LcSettingC - various functions to perform misc operations … More...

+ Collaboration diagram for LcSettingC_Misc_CS_API:

Functions

LcSettingC cslcconfig.LcSettingC.AddIfNotExists (string name, LcConfigTypeE cfgtype)
  C#: LcSettingC setting.AddIfNotExists(string name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting
 
LcSettingC cslcconfig.LcSettingC.Parent ()
  C#: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
bool cslcconfig.LcSettingC.Exists (string name)
  C#: bool setting.Exists(string name) C-API
addon - return true if name exists in the setting otherwise false
 
int cslcconfig.LcSettingC.Index ()
  C#: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
int cslcconfig.LcSettingC.Length ()
  C#: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
string cslcconfig.LcSettingC.Name ()
  C#: string setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
void cslcconfig.LcSettingC.Remove (string name)
  C#: parent.Remove(string name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
void cslcconfig.LcSettingC.RemoveElem (int idx)
  C#: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …
 
string cslcconfig.LcSettingC.SourceFile ()
  C#: string setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …
 
int cslcconfig.LcSettingC.SourceLine ()
  C#: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …
 
LcConfigTypeE cslcconfig.LcSettingC.Type ()
  C#: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting
 

Detailed Description

LcSettingC - various functions to perform misc operations …

Function Documentation

◆ AddIfNotExists()

LcSettingC cslcconfig.LcSettingC.AddIfNotExists ( string name,
LcConfigTypeE cfgtype )
inline

C#: LcSettingC setting.AddIfNotExists(string name, LcConfigTypeE cfgtype) C-API
addon - add name with type only if not exists in the setting

Definition at line 392 of file LcSettingC.cs.

392 {
393 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
394 IntPtr __retVal__L = Lc.LcSettingAddIfNotExists(hdl, name_cstr, cfgtype);
395 Marshal.FreeHGlobal(name_cstr);
396 return LcSettingC.LcSettingC_ObjNew(__retVal__L);
397 }

◆ Exists()

bool cslcconfig.LcSettingC.Exists ( string name)
inline

C#: bool setting.Exists(string name) C-API
addon - return true if name exists in the setting otherwise false

Definition at line 411 of file LcSettingC.cs.

411 {
412 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
413 bool __retVal__L = Lc.LcSettingExists(hdl, name_cstr);
414 Marshal.FreeHGlobal(name_cstr);
415 return __retVal__L;
416 }

◆ Index()

int cslcconfig.LcSettingC.Index ( )
inline

C#: int setting.Index() C-API
This function returns the index of the given setting within its parent setting …

Definition at line 419 of file LcSettingC.cs.

419 {
420 Int32 __retVal__L = Lc.LcSettingIndex(hdl);
421 return __retVal__L;
422 }

◆ Length()

int cslcconfig.LcSettingC.Length ( )
inline

C#: int setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …

Definition at line 425 of file LcSettingC.cs.

425 {
426 Int32 __retVal__L = Lc.LcSettingLength(hdl);
427 return __retVal__L;
428 }

◆ Name()

string cslcconfig.LcSettingC.Name ( )
inline

C#: string setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …

Definition at line 433 of file LcSettingC.cs.

433 {
434 IntPtr __retVal__L = Lc.LcSettingName(hdl);
435 return Marshal.PtrToStringAnsi(__retVal__L);
436 }

◆ Parent()

LcSettingC cslcconfig.LcSettingC.Parent ( )
inline

C#: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …

Definition at line 400 of file LcSettingC.cs.

400 {
401 IntPtr __retVal__L = Lc.LcSettingParent(hdl);
402 if (__retVal__L == IntPtr.Zero) {
403 throw new MkInitSoftError("LcSettingC.Parent");
404 }
405 return LcSettingC.LcSettingC_ObjNew(__retVal__L);
406 }

◆ Remove()

void cslcconfig.LcSettingC.Remove ( string name)
inline

C#: parent.Remove(string name) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …

Definition at line 439 of file LcSettingC.cs.

439 {
440 IntPtr name_cstr = Marshal.StringToHGlobalAnsi(name);
441 MkErrorE errVal = Lc.LcSettingRemove(hdl, name_cstr);
442 Marshal.FreeHGlobal(name_cstr);
443 MkErrorC.Check(hdl, errVal);
444 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE

◆ RemoveElem()

void cslcconfig.LcSettingC.RemoveElem ( int idx)
inline

C#: parent.RemoveElem(int idx) C-API
This function removes the child setting at the given index index from the setting parent, which must be a group, list, or array …

Definition at line 447 of file LcSettingC.cs.

447 {
448 MkErrorE errVal = Lc.LcSettingRemoveElem(hdl, idx);
449 MkErrorC.Check(hdl, errVal);
450 }

◆ SourceFile()

string cslcconfig.LcSettingC.SourceFile ( )
inline

C#: string setting.SourceFile() C-API
This function returns the name of the file from which the setting setting was read, or NULL if the setting was not read from a file …

Definition at line 453 of file LcSettingC.cs.

453 {
454 IntPtr __retVal__L = Lc.LcSettingSourceFile(hdl);
455 return Marshal.PtrToStringAnsi(__retVal__L);
456 }

◆ SourceLine()

int cslcconfig.LcSettingC.SourceLine ( )
inline

C#: int setting.SourceLine() C-API
This function returns the line number of the configuration file or stream at which the setting setting was read, or 0 if no line number is available …

Definition at line 459 of file LcSettingC.cs.

459 {
460 Int32 __retVal__L = Lc.LcSettingSourceLine(hdl);
461 return __retVal__L;
462 }

◆ Type()

LcConfigTypeE cslcconfig.LcSettingC.Type ( )
inline

C#: LcConfigTypeE setting.Type() C-API
This function returns the type of the given setting

Definition at line 465 of file LcSettingC.cs.

465 {
466 LcConfigTypeE __retVal__L = Lc.LcSettingType(hdl);
467 return __retVal__L;
468 }
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78