theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Misc_RB_API

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

+ Collaboration diagram for LcConfigC_Misc_RB_API:

Functions

static OT_ProcRet rblcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Ruby: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet rblcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Ruby: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet rblcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Ruby: cfg.Log(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the config
 
static OT_ProcRet rblcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Ruby: config.ReadFile(filename:string) C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
static OT_ProcRet rblcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Ruby: config.ReadString(str:string) C-API
This function reads and parses a configuration from the string str into the configuration object config
 
static OT_ProcRet rblcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Ruby: config.WriteFile(filename:string) C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet rblcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Ruby: string cfg.WriteString() C-API
read the entire configuration cfg into the string val_out
 

Detailed Description

LcConfigC - various functions to perform misc operations …

Function Documentation

◆ rblcconfig_LcConfigC_Clear()

static OT_ProcRet rblcconfig_LcConfigC_Clear ( LcConfigC_ARGS )
static

Ruby: config.Clear() C-API
Since v1.7 This function clears the configuration config

Definition at line 458 of file LcConfigC_rb.c.

458 {
462 LcConfigClear (hdl);
464 end: MK_UNUSED /* LONG JUMP on error */
466}
#define OT_SETUP_hdl
#define Clear_doc
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
static void LcConfigClear(LC_CFG config)
Since v1.7 This function clears the configuration config …
#define MK_UNUSED

◆ rblcconfig_LcConfigC_Log()

static OT_ProcRet rblcconfig_LcConfigC_Log ( LcConfigC_ARGS )
static

Ruby: cfg.Log(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the config

Definition at line 469 of file LcConfigC_rb.c.

469 {
472 MK_OBJN fmtobj = NULL;
474 MK_DBG debug = 0;
476 MK_STRN callfunc = NULL;
478 MK_I32 lvl = 0;
481 if (debug > MkRuntimeDebugGet()) {
483 goto end;
484 }
485 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
486 LcConfigLog (hdl, fmtobj, debug, callfunc, lvl);
488 end: MK_UNUSED /* LONG JUMP on error */
491}
#define Log_doc
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_FRAME_CLEANUP
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_STRN(val)
#define LcConfigLog(...)
#define MK_NULL_YES
const MK_STRB * MK_STRN
signed int MK_I32
int MK_DBG
static bool MkSysStringIsNULL(MK_STRN str)
static MK_I32 MkRuntimeDebugGet(void)
#define OT_CHECK_OBJN(val, nullB)

◆ rblcconfig_LcConfigC_ReadFile()

static OT_ProcRet rblcconfig_LcConfigC_ReadFile ( LcConfigC_ARGS )
static

Ruby: config.ReadFile(filename:string) C-API
This function reads and parses a configuration from the file named filename into the configuration object config

Definition at line 494 of file LcConfigC_rb.c.

494 {
497 MK_STRN filename = 0;
500 MkErrorC_Check(hdl,LcConfigReadFile (hdl, filename));
502 end: MK_UNUSED /* LONG JUMP on error */
504}
#define ReadFile_doc
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define MkErrorC_Check(mng, PROC)
static enum MkErrorE LcConfigReadFile(LC_CFG config, MK_STRN filename)
This function reads and parses a configuration from the file named filename into the configuration ob...

◆ rblcconfig_LcConfigC_ReadString()

static OT_ProcRet rblcconfig_LcConfigC_ReadString ( LcConfigC_ARGS )
static

Ruby: config.ReadString(str:string) C-API
This function reads and parses a configuration from the string str into the configuration object config

Definition at line 507 of file LcConfigC_rb.c.

507 {
510 MK_STRN str = 0;
513 MkErrorC_Check(hdl,LcConfigReadString (hdl, str));
515 end: MK_UNUSED /* LONG JUMP on error */
517}
#define ReadString_doc
static enum MkErrorE LcConfigReadString(LC_CFG config, MK_STRN str)
This function reads and parses a configuration from the string str into the configuration object conf...

◆ rblcconfig_LcConfigC_RootSetting()

static OT_ProcRet rblcconfig_LcConfigC_RootSetting ( LcConfigC_ARGS )
static

Ruby: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config

Definition at line 445 of file LcConfigC_rb.c.

445 {
449 LC_CFS retVal = LcConfigRootSetting (hdl);
450 OT_retObj_SET_CFS(retVal);
451 end: MK_UNUSED /* LONG JUMP on error */
453}
#define RootSetting_doc
#define OT_retObj_SET_CFS(nat)
static LC_CFS LcConfigRootSetting(LC_CFGN config)
This function, which is implemented as a macro, returns the root setting for the configuration config...
Struct to represent the data from the LcSettingC …

◆ rblcconfig_LcConfigC_WriteFile()

static OT_ProcRet rblcconfig_LcConfigC_WriteFile ( LcConfigC_ARGS )
static

Ruby: config.WriteFile(filename:string) C-API
This function writes the configuration config to the file named filename

Definition at line 520 of file LcConfigC_rb.c.

520 {
523 MK_STRN filename = 0;
526 MkErrorC_Check(hdl,LcConfigWriteFile (hdl, filename));
528 end: MK_UNUSED /* LONG JUMP on error */
530}
#define WriteFile_doc
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ rblcconfig_LcConfigC_WriteString()

static OT_ProcRet rblcconfig_LcConfigC_WriteString ( LcConfigC_ARGS )
static

Ruby: string cfg.WriteString() C-API
read the entire configuration cfg into the string val_out

Definition at line 535 of file LcConfigC_rb.c.

535 {
539 MK_STRN val_out;
540 MkErrorC_Check(hdl,LcConfigWriteString (hdl, &val_out));
541 OT_retObj_SET_STR(val_out);
542 end: MK_UNUSED /* LONG JUMP on error */
544}
#define WriteString_doc
#define OT_retObj_SET_STR(nat)
#define LcConfigWriteString(...)