theConfig 10.0
Loading...
Searching...
No Matches
LcConfigC_lc.h File Reference

tag: nhi1-release-250425 More...

#include "LibLcConfig_lc.h"
#include "LcConfigC_def_lc.h"
#include "LcSettingC_def_lc.h"
+ Include dependency graph for LcConfigC_lc.h:

Go to the source code of this file.

Functions

static LC_CFG LcConfigCreate (MK_TYP type, config_t *nat)
 create a LcConfigC instance …
 
void LcConfigDelete_RT (MK_RT mkrt, LC_CFG const cfg)
 delete a LcConfigC instance …
 
enum MkErrorE LcConfigIncludeCall (LcConfigIncludeCallF_ARGS)
 config-file include __parser__(callback-name)call
 
void LcConfigIncludeFree (LcConfigIncludeFreeF_ARGS)
 config-file include __parser__(callback-name)free
 
enum MkErrorE LcConfigSetIncludeFunc_RT (MK_RT mkrt, LC_CFG const cfg, LcConfigIncludeCallF fConfigIncludeCall, LC_CBP fConfigIncludeData, LcConfigIncludeFreeF fConfigIncludeFree)
 set the __parser__(callback-name) for the include-config-file
 
static MK_PTR LcConfigGetIncludeFunc (LC_CFG const cfg)
 return the callback-name for the include-config-file
 
enum MkErrorE LcConfigSetSettingDeleteFunc_RT (MK_RT mkrt, LC_CFG const cfg, LcSettingDeleteCallF fSettingDeleteCall, LC_CBP fSettingDeleteData, LcSettingDeleteFreeF fSettingDeleteFree)
 set the callback-name for the setting-delete
 
static MK_PTR LcConfigGetSettingDeleteFunc (LC_CFG const cfg)
 get the __parser__(callback-name) for setting-delete
 
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 enum LcErrorTypeE LcConfigErrorType (LC_CFGN config)
 This function, which is implemented as a macro, returns the type of error that occurred during the last call to one of the read or write functions …
 
static enum LcConfigFormatE LcConfigGetDefaultFormat (LC_CFGN config)
 These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
static MK_I16 LcConfigGetFloatPrecision (LC_CFGN config)
 Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
static MK_STRN LcConfigGetIncludeDir (LC_CFGN config)
 ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
static MK_BOOL LcConfigGetOption (LC_CFGN config, enum LcConfigOptionsEF option)
 Since v1.7 These functions get and set the given option of the configuration config
 
static enum LcConfigOptionsEF LcConfigGetOptions (LC_CFGN config)
 These functions get and set the options for the configuration config
 
static MK_I16 LcConfigGetTabWidth (LC_CFGN config)
 These functions, which are implemented as macros, get and set the tab width for the configuration config
 
static LC_CFS LcConfigLookup (LC_CFGN config, MK_STRN path)
 This function locates the setting in the configuration config specified by the path path
 
static enum MkErrorE LcConfigLookupBool (LC_CFGN config, MK_STRN path, MK_BOOL *value_out)
 These functions look up the value of the setting in the configuration config specified by the path path
 
static enum MkErrorE LcConfigLookupFloat (LC_CFGN config, MK_STRN path, MK_DBL *value_out)
 These functions look up the value of the setting in the configuration config specified by the path path
 
static enum MkErrorE LcConfigLookupInt (LC_CFGN config, MK_STRN path, MK_I32 *value_out)
 These functions look up the value of the setting in the configuration config specified by the path path
 
static enum MkErrorE LcConfigLookupInt64 (LC_CFGN config, MK_STRN path, MK_I64 *value_out)
 These functions look up the value of the setting in the configuration config specified by the path path
 
static enum MkErrorE LcConfigLookupString (LC_CFGN config, MK_STRN path, MK_STRN *value_out)
 These functions look up the value of the setting in the configuration config specified by the path path
 
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
 
static void LcConfigSetDefaultFormat (LC_CFG config, enum LcConfigFormatE format)
 These functions, which are implemented as macros, get and set the default external format for settings in the configuration config
 
static void LcConfigSetFloatPrecision (LC_CFG config, MK_I16 digits)
 Since v1.6 These functions get and set the number of decimal digits to output after the radix character when writing the configuration to a file or stream …
 
static void LcConfigSetIncludeDir (LC_CFG config, MK_STRN include_dir)
 ConfigSetIncludeDir specifies the include directory, include_dir, relative to which the files specified in '@include' directives will be located for the configuration config
 
static void LcConfigSetIncludeFuncHide (LC_CFG config, config_include_fn_t func)
 Since v1.7 Specifies the include function func to use when processing include directives …
 
static void LcConfigSetOption (LC_CFG config, enum LcConfigOptionsEF option, MK_BOOL flag)
 Since v1.7 These functions get and set the given option of the configuration config
 
static void LcConfigSetOptions (LC_CFG config, enum LcConfigOptionsEF options)
 These functions get and set the options for the configuration config
 
static void LcConfigSetTabWidth (LC_CFG config, MK_I16 width)
 These functions, which are implemented as macros, get and set the tab width for the configuration config
 

Detailed Description

tag: nhi1-release-250425

Definition in file LcConfigC_lc.h.