LcConfigC - various functions to perform misc operations … More...
Functions | |
enum MkErrorE | LcConfigWriteString_RT (MK_RT mkrt, LC_CFGN const cfg, MK_STRN *val_out) |
read the entire configuration cfg into the string val_out … | |
void | LcConfigLog_RT (MK_RT mkrt, LC_CFGN const cfg, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl) |
log the config … | |
static LC_CFS | LcConfigRootSetting (LC_CFGN config) |
This function, which is implemented as a macro, returns the root setting for the configuration config … | |
static void | LcConfigClear (LC_CFG config) |
Since v1.7 This function clears the configuration config … | |
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 object config … | |
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 config … | |
static enum MkErrorE | LcConfigWriteFile (LC_CFG config, MK_STRN filename) |
This function writes the configuration config to the file named filename … | |
LcConfigC - LcConfigC_Misc_C_API - function | |
LC_CFS | LcConfigRootSettingP (LC_CFGN config) |
Non-inline replacement for LcConfigRootSetting … | |
void | LcConfigClearP (LC_CFG config) |
Non-inline replacement for LcConfigClear … | |
enum MkErrorE | LcConfigReadFileP (LC_CFG config, MK_STRN filename) |
Non-inline replacement for LcConfigReadFile … | |
enum MkErrorE | LcConfigReadStringP (LC_CFG config, MK_STRN str) |
Non-inline replacement for LcConfigReadString … | |
enum MkErrorE | LcConfigWriteFileP (LC_CFG config, MK_STRN filename) |
Non-inline replacement for LcConfigWriteFile … | |
LcConfigC - LcConfigC_Misc_C_API - overload | |
#define | LcConfigLog_NULL(...) |
#define | LcConfigLog(...) |
#define | LcConfigLog_4(cfg, fmtobj, debug, callfunc) |
#define | LcConfigLog_3(cfg, fmtobj, debug) |
#define | LcConfigLog_2(cfg, fmtobj) |
#define | LcConfigLog_1(cfg) |
#define | LcConfigReadFile_E(...) |
#define | LcConfigReadFile_C(...) |
#define | LcConfigReadString_E(...) |
#define | LcConfigReadString_C(...) |
#define | LcConfigWriteFile_E(...) |
#define | LcConfigWriteFile_C(...) |
#define | LcConfigWriteString_NULL(...) |
#define | LcConfigWriteString(...) |
#define | LcConfigWriteString_E(...) |
#define | LcConfigWriteString_C(...) |
#define | LcConfigWriteString_e(...) |
LcConfigC - various functions to perform misc operations …
#define LcConfigLog | ( | ... | ) |
Definition at line 102 of file config_overload_lc.h.
#define LcConfigLog_1 | ( | cfg | ) |
Definition at line 106 of file config_overload_lc.h.
#define LcConfigLog_2 | ( | cfg, | |
fmtobj ) |
Definition at line 105 of file config_overload_lc.h.
#define LcConfigLog_3 | ( | cfg, | |
fmtobj, | |||
debug ) |
Definition at line 104 of file config_overload_lc.h.
#define LcConfigLog_4 | ( | cfg, | |
fmtobj, | |||
debug, | |||
callfunc ) |
Definition at line 103 of file config_overload_lc.h.
#define LcConfigLog_NULL | ( | ... | ) |
Definition at line 101 of file config_overload_lc.h.
#define LcConfigReadFile_C | ( | ... | ) |
Definition at line 108 of file config_overload_lc.h.
#define LcConfigReadFile_E | ( | ... | ) |
Definition at line 107 of file config_overload_lc.h.
#define LcConfigReadString_C | ( | ... | ) |
Definition at line 110 of file config_overload_lc.h.
#define LcConfigReadString_E | ( | ... | ) |
Definition at line 109 of file config_overload_lc.h.
#define LcConfigWriteFile_C | ( | ... | ) |
Definition at line 112 of file config_overload_lc.h.
#define LcConfigWriteFile_E | ( | ... | ) |
Definition at line 111 of file config_overload_lc.h.
#define LcConfigWriteString | ( | ... | ) |
Definition at line 116 of file config_overload_lc.h.
#define LcConfigWriteString_C | ( | ... | ) |
Definition at line 118 of file config_overload_lc.h.
#define LcConfigWriteString_E | ( | ... | ) |
Definition at line 117 of file config_overload_lc.h.
#define LcConfigWriteString_e | ( | ... | ) |
Definition at line 119 of file config_overload_lc.h.
#define LcConfigWriteString_NULL | ( | ... | ) |
Definition at line 115 of file config_overload_lc.h.
|
inlinestatic |
Since v1.7 This function clears the configuration config …
All child settings of the root setting are recursively destroyed. All other attributes of the configuration are left unchanged.
Definition at line 335 of file LcConfigC_lc.h.
void LcConfigClearP | ( | LC_CFG | config | ) |
Non-inline replacement for LcConfigClear …
void LcConfigLog_RT | ( | MK_RT | mkrt, |
LC_CFGN const | cfg, | ||
MK_OBJN | fmtobj, | ||
MK_DBG const | debug, | ||
MK_STRN const | callfunc, | ||
MK_I32 const | lvl ) |
log the config …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | cfg | Programming-Language-Micro-Kernel (PLMK) instance from config_t |
[in] | fmtobj | managed object used to format the log-message (default="MK_NULL" → use default-format) |
[in] | debug | the debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0 ) |
[in] | callfunc | a user-defined postfix to identify the calling function or the environment (default=name-of-function ) |
[in] | lvl | a user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0 ) |
This function reads and parses a configuration from the file named filename into the configuration object config …
It returns CONFIG_TRUE on success, or CONFIG_FALSE on failure; the config_error_text and config_error_line functions, described below, can be used to obtain information about the error.
Definition at line 341 of file LcConfigC_lc.h.
Non-inline replacement for LcConfigReadFile …
This function reads and parses a configuration from the string str into the configuration object config …
It returns CONFIG_TRUE on success, or CONFIG_FALSE on failure; the config_error_text and config_error_line functions, described below, can be used to obtain information about the error.
Definition at line 351 of file LcConfigC_lc.h.
Non-inline replacement for LcConfigReadString …
This function, which is implemented as a macro, returns the root setting for the configuration config …
The root setting is a group.
Definition at line 327 of file LcConfigC_lc.h.
Non-inline replacement for LcConfigRootSetting …
This function writes the configuration config to the file named filename …
It returns CONFIG_TRUE on success, or CONFIG_FALSE on failure.
Definition at line 361 of file LcConfigC_lc.h.
Non-inline replacement for LcConfigWriteFile …
read the entire configuration cfg into the string val_out …
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | cfg | Programming-Language-Micro-Kernel (PLMK) instance from config_t |
[out] | val_out | the entire configuration as string - value owed by string [$cfg WriteString] . |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |