theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_Misc_ATL_API

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

+ Collaboration diagram for LcConfigC_Misc_ATL_API:

Functions

static OT_ProcRet atllcconfig_LcConfigC_RootSetting (LcConfigC_ARGS)
  Atl: LcSettingC [LcConfigC::RootSetting $config] C-API
This function, which is implemented as a macro, returns the root setting for the configuration config
 
static OT_ProcRet atllcconfig_LcConfigC_Clear (LcConfigC_ARGS)
  Atl: LcConfigC::Clear $config C-API
Since v1.7 This function clears the configuration config
 
static OT_ProcRet atllcconfig_LcConfigC_Log (LcConfigC_ARGS)
  Atl: LcConfigC::Log $cfg ?fmtobj:MkObjectC=NULL? ?debug:int32=0? ?callfunc:string="MK_NULL"? ?lvl:int32=0? C-API
log the config
 
static OT_ProcRet atllcconfig_LcConfigC_ReadFile (LcConfigC_ARGS)
  Atl: LcConfigC::ReadFile $config filename:string C-API
This function reads and parses a configuration from the file named filename into the configuration object config
 
static OT_ProcRet atllcconfig_LcConfigC_ReadString (LcConfigC_ARGS)
  Atl: LcConfigC::ReadString $config str:string C-API
This function reads and parses a configuration from the string str into the configuration object config
 
static OT_ProcRet atllcconfig_LcConfigC_WriteFile (LcConfigC_ARGS)
  Atl: LcConfigC::WriteFile $config filename:string C-API
This function writes the configuration config to the file named filename
 
static OT_ProcRet atllcconfig_LcConfigC_WriteString (LcConfigC_ARGS)
  Atl: string [LcConfigC::WriteString $cfg] C-API
read the entire configuration cfg into the string val_out
 

Detailed Description

LcConfigC - various functions to perform misc operations …

Function Documentation

◆ atllcconfig_LcConfigC_Clear()

static OT_ProcRet atllcconfig_LcConfigC_Clear ( LcConfigC_ARGS )
static

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

Definition at line 512 of file LcConfigC_atl.c.

512 {
516 LcConfigClear (hdl);
518 goto end;
519 error:
521 end:
523}
#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 …

◆ atllcconfig_LcConfigC_Log()

static OT_ProcRet atllcconfig_LcConfigC_Log ( LcConfigC_ARGS )
static

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

Definition at line 526 of file LcConfigC_atl.c.

526 {
529 MK_OBJN fmtobj = NULL;
531 MK_DBG debug = 0;
533 MK_STRN callfunc = NULL;
535 MK_I32 lvl = 0;
538 if (debug > MkRuntimeDebugGet()) {
540 goto end;
541 }
542 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
543 LcConfigLog (hdl, fmtobj, debug, callfunc, lvl);
545 goto end;
546 error:
548 end:
551}
#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)

◆ atllcconfig_LcConfigC_ReadFile()

static OT_ProcRet atllcconfig_LcConfigC_ReadFile ( LcConfigC_ARGS )
static

Atl: LcConfigC::ReadFile $config filename:string C-API
This function reads and parses a configuration from the file named filename into the configuration object config

Definition at line 554 of file LcConfigC_atl.c.

554 {
557 MK_STRN filename = 0;
560 MkErrorC_Check(hdl,LcConfigReadFile (hdl, filename));
562 goto end;
563 error:
565 end:
567}
#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...

◆ atllcconfig_LcConfigC_ReadString()

static OT_ProcRet atllcconfig_LcConfigC_ReadString ( LcConfigC_ARGS )
static

Atl: LcConfigC::ReadString $config str:string C-API
This function reads and parses a configuration from the string str into the configuration object config

Definition at line 570 of file LcConfigC_atl.c.

570 {
573 MK_STRN str = 0;
578 goto end;
579 error:
581 end:
583}
#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...

◆ atllcconfig_LcConfigC_RootSetting()

static OT_ProcRet atllcconfig_LcConfigC_RootSetting ( LcConfigC_ARGS )
static

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

Definition at line 496 of file LcConfigC_atl.c.

496 {
500 LC_CFS retVal = LcConfigRootSetting (hdl);
501 OT_retObj_SET_CFS(retVal);
502 goto end;
503 error:
505 end:
507}
#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 …

◆ atllcconfig_LcConfigC_WriteFile()

static OT_ProcRet atllcconfig_LcConfigC_WriteFile ( LcConfigC_ARGS )
static

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

Definition at line 586 of file LcConfigC_atl.c.

586 {
589 MK_STRN filename = 0;
592 MkErrorC_Check(hdl,LcConfigWriteFile (hdl, filename));
594 goto end;
595 error:
597 end:
599}
#define WriteFile_doc
static enum MkErrorE LcConfigWriteFile(LC_CFG config, MK_STRN filename)
This function writes the configuration config to the file named filename …

◆ atllcconfig_LcConfigC_WriteString()

static OT_ProcRet atllcconfig_LcConfigC_WriteString ( LcConfigC_ARGS )
static

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

Definition at line 604 of file LcConfigC_atl.c.

604 {
608 MK_STRN val_out;
609 MkErrorC_Check(hdl,LcConfigWriteString (hdl, &val_out));
610 OT_retObj_SET_STR(val_out);
611 goto end;
612 error:
614 end:
616}
#define WriteString_doc
#define OT_retObj_SET_STR(nat)
#define LcConfigWriteString(...)