theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Misc_RB_API

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

+ Collaboration diagram for LcSettingC_Misc_RB_API:

Functions

static OT_ProcRet rblcconfig_LcSettingC_AddIfNotExists (LcSettingC_ARGS)
  Ruby: LcSettingC setting.AddIfNotExists(name:string, cfgtype:LcConfigTypeE) C-API
addon - add name with type only if not exists in the setting
 
static OT_ProcRet rblcconfig_LcSettingC_Parent (LcSettingC_ARGS)
  Ruby: LcSettingC setting.Parent() C-API
This function returns the parent setting of the given setting, or NULL if setting is the root setting …
 
static OT_ProcRet rblcconfig_LcSettingC_Exists (LcSettingC_ARGS)
  Ruby: bool setting.Exists(name:string) C-API
addon - return true if name exists in the setting otherwise false
 
static OT_ProcRet rblcconfig_LcSettingC_Index (LcSettingC_ARGS)
  Ruby: int32 setting.Index() C-API
This function returns the index of the given setting within its parent setting …
 
static OT_ProcRet rblcconfig_LcSettingC_Length (LcSettingC_ARGS)
  Ruby: int32 setting.Length() C-API
This function returns the number of settings in a group, or the number of elements in a list or array …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rblcconfig_LcSettingC_Log (LcSettingC_ARGS)
 
static OT_ProcRet rblcconfig_LcSettingC_Name (LcSettingC_ARGS)
  Ruby: string setting.Name() C-API
This function returns the name of the given setting, or NULL if the setting has no name …
 
static OT_ProcRet rblcconfig_LcSettingC_Remove (LcSettingC_ARGS)
  Ruby: parent.Remove(name:string) C-API
This function removes and destroys the setting named name from the parent setting parent, which must be a group …
 
static OT_ProcRet rblcconfig_LcSettingC_RemoveElem (LcSettingC_ARGS)
  Ruby: parent.RemoveElem(idx:int32) 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 …
 
static OT_ProcRet rblcconfig_LcSettingC_SourceFile (LcSettingC_ARGS)
  Ruby: 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 …
 
static OT_ProcRet rblcconfig_LcSettingC_SourceLine (LcSettingC_ARGS)
  Ruby: int32 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 …
 
static OT_ProcRet rblcconfig_LcSettingC_Type (LcSettingC_ARGS)
  Ruby: 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

◆ rblcconfig_LcSettingC_AddIfNotExists()

static OT_ProcRet rblcconfig_LcSettingC_AddIfNotExists ( LcSettingC_ARGS )
static

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

Definition at line 633 of file LcSettingC_rb.c.

633 {
636 MK_STRN name = 0;
638 enum LcConfigTypeE cfgtype = 0;
641 LC_CFS retVal = LcSettingAddIfNotExists (hdl, name, cfgtype);
642 OT_retObj_SET_CFS(retVal);
643 end: MK_UNUSED /* LONG JUMP on error */
645}
#define OT_SETUP_hdl
#define AddIfNotExists_doc
#define OT_retObj_SET_CFS(nat)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
static LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
#define MK_UNUSED
const MK_STRB * MK_STRN
#define OT_CHECK_ENUM(ename, val)
Struct to represent the data from the LcSettingC …

◆ rblcconfig_LcSettingC_Exists()

static OT_ProcRet rblcconfig_LcSettingC_Exists ( LcSettingC_ARGS )
static

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

Definition at line 664 of file LcSettingC_rb.c.

664 {
667 MK_STRN name = 0;
671 end: MK_UNUSED /* LONG JUMP on error */
673}
#define Exists_doc
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_ONEARG(d)
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …

◆ rblcconfig_LcSettingC_Index()

static OT_ProcRet rblcconfig_LcSettingC_Index ( LcSettingC_ARGS )
static

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

Definition at line 676 of file LcSettingC_rb.c.

676 {
681 end: MK_UNUSED /* LONG JUMP on error */
683}
#define Index_doc
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_I32(nat)
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …

◆ rblcconfig_LcSettingC_Length()

static OT_ProcRet rblcconfig_LcSettingC_Length ( LcSettingC_ARGS )
static

Ruby: int32 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 686 of file LcSettingC_rb.c.

686 {
691 end: MK_UNUSED /* LONG JUMP on error */
693}
#define Length_doc
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...

◆ rblcconfig_LcSettingC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet rblcconfig_LcSettingC_Log ( LcSettingC_ARGS )
static

Definition at line 697 of file LcSettingC_rb.c.

#define OT_ERROR_LNG_RETURN

◆ rblcconfig_LcSettingC_Name()

static OT_ProcRet rblcconfig_LcSettingC_Name ( LcSettingC_ARGS )
static

Ruby: 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 700 of file LcSettingC_rb.c.

700 {
705 end: MK_UNUSED /* LONG JUMP on error */
707}
#define Name_doc
#define OT_retObj_SET_STR(nat)
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …

◆ rblcconfig_LcSettingC_Parent()

static OT_ProcRet rblcconfig_LcSettingC_Parent ( LcSettingC_ARGS )
static

Ruby: 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 648 of file LcSettingC_rb.c.

648 {
652 LC_CFS retVal = LcSettingParent (hdl);
653 if (retVal == NULL) {
654 OT_ERROR_SOFT_CONSTRUCTOR(LcSettingC);
655 }
656 OT_retObj_SET_CFS(retVal);
657 end: MK_UNUSED /* LONG JUMP on error */
659}
#define Parent_doc
#define OT_ERROR_SOFT_CONSTRUCTOR(clazz)
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...

◆ rblcconfig_LcSettingC_Remove()

static OT_ProcRet rblcconfig_LcSettingC_Remove ( LcSettingC_ARGS )
static

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

Definition at line 710 of file LcSettingC_rb.c.

710 {
713 MK_STRN name = 0;
716 MkErrorC_Check(hdl,LcSettingRemove (hdl, name));
718 end: MK_UNUSED /* LONG JUMP on error */
720}
#define Remove_doc
#define OT_retObj_SET_None
#define MkErrorC_Check(mng, PROC)
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...

◆ rblcconfig_LcSettingC_RemoveElem()

static OT_ProcRet rblcconfig_LcSettingC_RemoveElem ( LcSettingC_ARGS )
static

Ruby: parent.RemoveElem(idx:int32) 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 723 of file LcSettingC_rb.c.

723 {
726 MK_I32 idx = 0;
729 MkErrorC_Check(hdl,LcSettingRemoveElem (hdl, idx));
731 end: MK_UNUSED /* LONG JUMP on error */
733}
#define RemoveElem_doc
#define OT_CHECK_NI4(val)
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...
signed int MK_I32

◆ rblcconfig_LcSettingC_SourceFile()

static OT_ProcRet rblcconfig_LcSettingC_SourceFile ( LcSettingC_ARGS )
static

Ruby: 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 736 of file LcSettingC_rb.c.

736 {
741 end: MK_UNUSED /* LONG JUMP on error */
743}
#define SourceFile_doc
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...

◆ rblcconfig_LcSettingC_SourceLine()

static OT_ProcRet rblcconfig_LcSettingC_SourceLine ( LcSettingC_ARGS )
static

Ruby: int32 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 746 of file LcSettingC_rb.c.

746 {
751 end: MK_UNUSED /* LONG JUMP on error */
753}
#define SourceLine_doc
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...

◆ rblcconfig_LcSettingC_Type()

static OT_ProcRet rblcconfig_LcSettingC_Type ( LcSettingC_ARGS )
static

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

Definition at line 756 of file LcSettingC_rb.c.

756 {
761 end: MK_UNUSED /* LONG JUMP on error */
763}
#define Type_doc
#define OT_NEW_Lc_enum_OBJ(typ, i)
#define OT_retObj_SET(val)
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …