theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Misc_TCL_API

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

+ Collaboration diagram for LcConfigC_Misc_TCL_API:

Functions

static OT_ProcRet tcllcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Tcl: LcSettingC [$config RootSetting] C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Tcl: $config Clear C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet tcllcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Tcl: $cfg Log ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the config
 
static OT_ProcRet tcllcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Tcl: $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 tcllcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Tcl: $config WriteFile filename:string C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet tcllcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Tcl: 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

◆ tcllcconfig_LcConfigC_Clear()

static OT_ProcRet tcllcconfig_LcConfigC_Clear ( LcConfigC_ARGS )
static

Tcl: $config Clear C-API
Since v1.7 This function clears the configuration config

Definition at line 533 of file LcConfigC_tcl.c.

533 {
537 LcConfigClear (hdl);
539 goto end;
540 error:
542 end:
544}
#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 …

◆ tcllcconfig_LcConfigC_Log()

static OT_ProcRet tcllcconfig_LcConfigC_Log ( LcConfigC_ARGS )
static

Tcl: $cfg Log ?fmtobj:MkObjectC="MK_NULL"? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the config

Definition at line 547 of file LcConfigC_tcl.c.

547 {
550 MK_OBJN fmtobj = NULL;
552 MK_DBG debug = 0;
554 MK_STRN callfunc = NULL;
556 MK_I32 lvl = 0;
559 if (debug > MkRuntimeDebugGet()) {
561 goto end;
562 }
563 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
564 LcConfigLog (hdl, fmtobj, debug, callfunc, lvl);
566 goto end;
567 error:
569 end:
572}
#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)

◆ tcllcconfig_LcConfigC_ReadFile()

static OT_ProcRet tcllcconfig_LcConfigC_ReadFile ( LcConfigC_ARGS )
static

Tcl: $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 575 of file LcConfigC_tcl.c.

575 {
578 MK_STRN filename = 0;
581 MkErrorC_Check(hdl,LcConfigReadFile (hdl, filename));
583 goto end;
584 error:
586 end:
588}
#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...

◆ tcllcconfig_LcConfigC_ReadString()

static OT_ProcRet tcllcconfig_LcConfigC_ReadString ( LcConfigC_ARGS )
static

Tcl: $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 591 of file LcConfigC_tcl.c.

591 {
594 MK_STRN str = 0;
599 goto end;
600 error:
602 end:
604}
#define ReadString_doc
#define str(s)
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...

◆ tcllcconfig_LcConfigC_RootSetting()

static OT_ProcRet tcllcconfig_LcConfigC_RootSetting ( LcConfigC_ARGS )
static

Tcl: LcSettingC [$config RootSetting] C-API
This function, which is implemented as a macro, returns the root setting for the configuration config

Definition at line 517 of file LcConfigC_tcl.c.

517 {
521 LC_CFS retVal = LcConfigRootSetting (hdl);
522 OT_retObj_SET_CFS(retVal);
523 goto end;
524 error:
526 end:
528}
#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 …

◆ tcllcconfig_LcConfigC_WriteFile()

static OT_ProcRet tcllcconfig_LcConfigC_WriteFile ( LcConfigC_ARGS )
static

Tcl: $config WriteFile filename:string C-API
This function writes the configuration config to the file named filename

Definition at line 607 of file LcConfigC_tcl.c.

607 {
610 MK_STRN filename = 0;
613 MkErrorC_Check(hdl,LcConfigWriteFile (hdl, filename));
615 goto end;
616 error:
618 end:
620}
#define WriteFile_doc
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ tcllcconfig_LcConfigC_WriteString()

static OT_ProcRet tcllcconfig_LcConfigC_WriteString ( LcConfigC_ARGS )
static

Tcl: string [$cfg WriteString] C-API
read the entire configuration cfg into the string val_out

Definition at line 625 of file LcConfigC_tcl.c.

625 {
629 MK_STRN val_out;
630 MkErrorC_Check(hdl,LcConfigWriteString (hdl, &val_out));
631 OT_retObj_SET_STR(val_out);
632 goto end;
633 error:
635 end:
637}
#define WriteString_doc
#define OT_retObj_SET_STR(nat)
#define LcConfigWriteString(...)