theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Misc_PY_API

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

+ Collaboration diagram for LcConfigC_Misc_PY_API:

Functions

static OT_ProcRet pylcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Python: LcSettingC config.RootSetting() C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Python: config.Clear() C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet pylcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Python: cfg.Log(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the config
 
static OT_ProcRet pylcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Python: 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 pylcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Python: config.WriteFile(filename:string) C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet pylcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Python: 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

◆ pylcconfig_LcConfigC_Clear()

static OT_ProcRet pylcconfig_LcConfigC_Clear ( LcConfigC_ARGS )
static

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

Definition at line 511 of file LcConfigC_py.c.

511 {
515 LcConfigClear (hdl);
517 goto end;
518 error:
520 end:
522}
#define OT_SETUP_hdl
#define Clear_doc
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_Error
#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 …

◆ pylcconfig_LcConfigC_Log()

static OT_ProcRet pylcconfig_LcConfigC_Log ( LcConfigC_ARGS )
static

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

Definition at line 525 of file LcConfigC_py.c.

525 {
528 MK_OBJN fmtobj = NULL;
530 MK_DBG debug = 0;
532 MK_STRN callfunc = NULL;
534 MK_I32 lvl = 0;
537 if (debug > MkRuntimeDebugGet()) {
539 goto end;
540 }
541 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
542 LcConfigLog (hdl, fmtobj, debug, callfunc, lvl);
544 goto end;
545 error:
547 end:
550}
#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)

◆ pylcconfig_LcConfigC_ReadFile()

static OT_ProcRet pylcconfig_LcConfigC_ReadFile ( LcConfigC_ARGS )
static

Python: 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 553 of file LcConfigC_py.c.

553 {
556 MK_STRN filename = 0;
559 MkErrorC_Check(hdl,LcConfigReadFile (hdl, filename));
561 goto end;
562 error:
564 end:
566}
#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...

◆ pylcconfig_LcConfigC_ReadString()

static OT_ProcRet pylcconfig_LcConfigC_ReadString ( LcConfigC_ARGS )
static

Python: 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 569 of file LcConfigC_py.c.

569 {
572 MK_STRN str = 0;
575 MkErrorC_Check(hdl,LcConfigReadString (hdl, str));
577 goto end;
578 error:
580 end:
582}
#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...

◆ pylcconfig_LcConfigC_RootSetting()

static OT_ProcRet pylcconfig_LcConfigC_RootSetting ( LcConfigC_ARGS )
static

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

Definition at line 495 of file LcConfigC_py.c.

495 {
499 LC_CFS retVal = LcConfigRootSetting (hdl);
500 OT_retObj_SET_CFS(retVal);
501 goto end;
502 error:
504 end:
506}
#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 …

◆ pylcconfig_LcConfigC_WriteFile()

static OT_ProcRet pylcconfig_LcConfigC_WriteFile ( LcConfigC_ARGS )
static

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

Definition at line 585 of file LcConfigC_py.c.

585 {
588 MK_STRN filename = 0;
591 MkErrorC_Check(hdl,LcConfigWriteFile (hdl, filename));
593 goto end;
594 error:
596 end:
598}
#define WriteFile_doc
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ pylcconfig_LcConfigC_WriteString()

static OT_ProcRet pylcconfig_LcConfigC_WriteString ( LcConfigC_ARGS )
static

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

Definition at line 603 of file LcConfigC_py.c.

603 {
607 MK_STRN val_out;
608 MkErrorC_Check(hdl,LcConfigWriteString (hdl, &val_out));
609 OT_retObj_SET_STR(val_out);
610 goto end;
611 error:
613 end:
615}
#define WriteString_doc
#define OT_retObj_SET_STR(nat)
#define LcConfigWriteString(...)