theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LcSettingC_Get_C_API

LcSettingC - various functions to get data from a settingMore...

+ Collaboration diagram for LcSettingC_Get_C_API:

Functions

static LC_CFS LcSettingGetElem (LC_CFSN setting, MK_I32 idx)
 This function fetches the element at the given index index in the setting setting, which must be an array, list, or group …
 
static LC_CFS LcSettingGetMember (LC_CFSN setting, MK_STRN name)
 This function fetches the child setting named name from the group setting
 
static MK_BOOL LcSettingGetBool (LC_CFSN setting)
 These functions return the value of the given setting
 
static MK_BOOL LcSettingGetBoolElem (LC_CFSN setting, MK_I32 idx)
 These functions return the value at the specified index index in the setting setting
 
static MK_DBL LcSettingGetFloat (LC_CFSN setting)
 These functions return the value of the given setting
 
static MK_DBL LcSettingGetFloatElem (LC_CFSN setting, MK_I32 idx)
 These functions return the value at the specified index index in the setting setting
 
static enum LcConfigFormatE LcSettingGetFormat (LC_CFSN setting)
 These functions get and set the external format for the setting setting
 
static MK_PTR LcSettingGetHookHide (LC_CFSN setting)
 These functions make it possible to attach arbitrary data to each setting structure, for instance a ''wrapper'' or ''peer'' object written in another programming language …
 
static MK_I32 LcSettingGetInt (LC_CFSN setting)
 These functions return the value of the given setting
 
static MK_I64 LcSettingGetInt64 (LC_CFSN setting)
 These functions return the value of the given setting
 
static MK_I64 LcSettingGetInt64Elem (LC_CFSN setting, MK_I32 idx)
 These functions return the value at the specified index index in the setting setting
 
static MK_I32 LcSettingGetIntElem (LC_CFSN setting, MK_I32 idx)
 These functions return the value at the specified index index in the setting setting
 
static MK_STRN LcSettingGetString (LC_CFSN setting)
 These functions return the value of the given setting
 
static MK_STRN LcSettingGetStringElem (LC_CFSN setting, MK_I32 idx)
 These functions return the value at the specified index index in the setting setting
 
static LC_CFG LcSettingGetConfig (LC_CFSN setting)
 addon - return the LcConfigC from the LcSettingC
 

LcSettingC - LcSettingC_Get_C_API - function

LC_CFS LcSettingGetElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetElem
 
LC_CFS LcSettingGetMemberP (LC_CFSN setting, MK_STRN name)
 Non-inline replacement for LcSettingGetMember
 
MK_BOOL LcSettingGetBoolP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetBool
 
MK_BOOL LcSettingGetBoolElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetBoolElem
 
MK_DBL LcSettingGetFloatP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetFloat
 
MK_DBL LcSettingGetFloatElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetFloatElem
 
enum LcConfigFormatE LcSettingGetFormatP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetFormat
 
MK_PTR LcSettingGetHookHideP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetHookHide
 
MK_I32 LcSettingGetIntP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetInt
 
MK_I64 LcSettingGetInt64P (LC_CFSN setting)
 Non-inline replacement for LcSettingGetInt64
 
MK_I64 LcSettingGetInt64ElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetInt64Elem
 
MK_I32 LcSettingGetIntElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetIntElem
 
MK_STRN LcSettingGetStringP (LC_CFSN setting)
 Non-inline replacement for LcSettingGetString
 
MK_STRN LcSettingGetStringElemP (LC_CFSN setting, MK_I32 idx)
 Non-inline replacement for LcSettingGetStringElem
 

Detailed Description

LcSettingC - various functions to get data from a setting

Function Documentation

◆ LcSettingGetBool()

static MK_BOOL LcSettingGetBool ( LC_CFSN setting)
static

These functions return the value of the given setting

If the type of the setting does not match the type requested, a 0 or NULL value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.

See also
SettingGetFloat, SettingGetInt, SettingGetInt64, SettingGetString

Definition at line 97 of file LcSettingC_lc.h.

97 {
98 LC_INSTANCE_HDL(setting);
99 return (MK_BOOL)config_setting_get_bool(setting->nat);
100 }
#define LC_INSTANCE_HDL(x)
bool MK_BOOL
LIBCONFIG_API int config_setting_get_bool(const config_setting_t *setting)
config_setting_t * nat
internal - link between LcSettingS and native library
+ Here is the caller graph for this function:

◆ LcSettingGetBoolElem()

static MK_BOOL LcSettingGetBoolElem ( LC_CFSN setting,
MK_I32 idx )
static

These functions return the value at the specified index index in the setting setting

If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.

See also
SettingGetFloatElem, SettingGetInt64Elem, SettingGetIntElem, SettingGetStringElem

Definition at line 103 of file LcSettingC_lc.h.

103 {
104 LC_INSTANCE_HDL(setting);
105 return (MK_BOOL)config_setting_get_bool_elem(setting->nat, idx);
106 }
LIBCONFIG_API int config_setting_get_bool_elem(const config_setting_t *setting, int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetBoolElemP()

MK_BOOL LcSettingGetBoolElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetBoolElem

◆ LcSettingGetBoolP()

MK_BOOL LcSettingGetBoolP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetBool

◆ LcSettingGetConfig()

static LC_CFG LcSettingGetConfig ( LC_CFSN setting)
static

addon - return the LcConfigC from the LcSettingC

Definition at line 493 of file LcSettingC_lc.h.

493 {
494 return LcConfigC_ObjNew(setting->nat->config);
495}
static MK_ARTIFICIAL LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
struct config_t * config
+ Here is the caller graph for this function:

◆ LcSettingGetElem()

static LC_CFS LcSettingGetElem ( LC_CFSN setting,
MK_I32 idx )
static

This function fetches the element at the given index index in the setting setting, which must be an array, list, or group …

It returns the requested setting on success, or NULL if index is out of range or if setting is not an array, list, or group.

Definition at line 83 of file LcSettingC_lc.h.

83 {
84 LC_INSTANCE_HDL(setting);
86 }
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
unsigned int MK_U32
LIBCONFIG_API config_setting_t * config_setting_get_elem(const config_setting_t *setting, unsigned int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetElemP()

LC_CFS LcSettingGetElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetElem

◆ LcSettingGetFloat()

static MK_DBL LcSettingGetFloat ( LC_CFSN setting)
static

These functions return the value of the given setting

If the type of the setting does not match the type requested, a 0 or NULL value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.

See also
SettingGetBool, SettingGetInt, SettingGetInt64, SettingGetString

Definition at line 109 of file LcSettingC_lc.h.

109 {
110 LC_INSTANCE_HDL(setting);
111 return config_setting_get_float(setting->nat);
112 }
LIBCONFIG_API double config_setting_get_float(const config_setting_t *setting)
+ Here is the caller graph for this function:

◆ LcSettingGetFloatElem()

static MK_DBL LcSettingGetFloatElem ( LC_CFSN setting,
MK_I32 idx )
static

These functions return the value at the specified index index in the setting setting

If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.

See also
SettingGetBoolElem, SettingGetInt64Elem, SettingGetIntElem, SettingGetStringElem

Definition at line 115 of file LcSettingC_lc.h.

115 {
116 LC_INSTANCE_HDL(setting);
117 return config_setting_get_float_elem(setting->nat, idx);
118 }
LIBCONFIG_API double config_setting_get_float_elem(const config_setting_t *setting, int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetFloatElemP()

MK_DBL LcSettingGetFloatElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetFloatElem

◆ LcSettingGetFloatP()

MK_DBL LcSettingGetFloatP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetFloat

◆ LcSettingGetFormat()

static enum LcConfigFormatE LcSettingGetFormat ( LC_CFSN setting)
static

These functions get and set the external format for the setting setting

The format must be one of the constants CONFIG_FORMAT_DEFAULT or CONFIG_FORMAT_HEX. All settings support the CONFIG_FORMAT_DEFAULT format. The CONFIG_FORMAT_HEX format specifies hexadecimal formatting for integer values, and hence only applies to settings of type CONFIG_TYPE_INT and CONFIG_TYPE_INT64. If format is invalid for the given setting, it is ignored.

If a non-default format has not been set for the setting, SettingGetFormat returns the default format for the configuration, as set by ConfigSetDefaultFormat.

SettingSetFormat returns CONFIG_TRUE on success and CONFIG_FALSE on failure.

See also
SettingSetFormat

Definition at line 121 of file LcSettingC_lc.h.

121 {
122 LC_INSTANCE_HDL(setting);
123 return (enum LcConfigFormatE)config_setting_get_format(setting->nat);
124 }
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:33
LIBCONFIG_API short config_setting_get_format(const config_setting_t *setting)
+ Here is the caller graph for this function:

◆ LcSettingGetFormatP()

enum LcConfigFormatE LcSettingGetFormatP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetFormat

◆ LcSettingGetHookHide()

static MK_PTR LcSettingGetHookHide ( LC_CFSN setting)
static

These functions make it possible to attach arbitrary data to each setting structure, for instance a ''wrapper'' or ''peer'' object written in another programming language …

The destructor function, if one has been supplied via a call to config_set_destructor, will be called by the library to dispose of this data when the setting itself is destroyed. There is no default destructor.

See also
config_setting_set_hook

Definition at line 127 of file LcSettingC_lc.h.

127 {
128 LC_INSTANCE_HDL(setting);
129 return (MK_PTR)config_setting_get_hook(setting->nat);
130 }
MK_PTRB * MK_PTR
#define config_setting_get_hook(S)

◆ LcSettingGetHookHideP()

MK_PTR LcSettingGetHookHideP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetHookHide

◆ LcSettingGetInt()

static MK_I32 LcSettingGetInt ( LC_CFSN setting)
static

These functions return the value of the given setting

If the type of the setting does not match the type requested, a 0 or NULL value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.

See also
SettingGetBool, SettingGetFloat, SettingGetInt64, SettingGetString

Definition at line 133 of file LcSettingC_lc.h.

133 {
134 LC_INSTANCE_HDL(setting);
135 return config_setting_get_int(setting->nat);
136 }
LIBCONFIG_API int config_setting_get_int(const config_setting_t *setting)
+ Here is the caller graph for this function:

◆ LcSettingGetInt64()

static MK_I64 LcSettingGetInt64 ( LC_CFSN setting)
static

These functions return the value of the given setting

If the type of the setting does not match the type requested, a 0 or NULL value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.

See also
SettingGetBool, SettingGetFloat, SettingGetInt, SettingGetString

Definition at line 139 of file LcSettingC_lc.h.

139 {
140 LC_INSTANCE_HDL(setting);
141 return config_setting_get_int64(setting->nat);
142 }
LIBCONFIG_API long long config_setting_get_int64(const config_setting_t *setting)
+ Here is the caller graph for this function:

◆ LcSettingGetInt64Elem()

static MK_I64 LcSettingGetInt64Elem ( LC_CFSN setting,
MK_I32 idx )
static

These functions return the value at the specified index index in the setting setting

If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.

See also
SettingGetBoolElem, SettingGetFloatElem, SettingGetIntElem, SettingGetStringElem

Definition at line 145 of file LcSettingC_lc.h.

145 {
146 LC_INSTANCE_HDL(setting);
147 return config_setting_get_int64_elem(setting->nat, idx);
148 }
LIBCONFIG_API long long config_setting_get_int64_elem(const config_setting_t *setting, int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetInt64ElemP()

MK_I64 LcSettingGetInt64ElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetInt64Elem

◆ LcSettingGetInt64P()

MK_I64 LcSettingGetInt64P ( LC_CFSN setting)

Non-inline replacement for LcSettingGetInt64

◆ LcSettingGetIntElem()

static MK_I32 LcSettingGetIntElem ( LC_CFSN setting,
MK_I32 idx )
static

These functions return the value at the specified index index in the setting setting

If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.

See also
SettingGetBoolElem, SettingGetFloatElem, SettingGetInt64Elem, SettingGetStringElem

Definition at line 151 of file LcSettingC_lc.h.

151 {
152 LC_INSTANCE_HDL(setting);
153 return config_setting_get_int_elem(setting->nat, idx);
154 }
LIBCONFIG_API int config_setting_get_int_elem(const config_setting_t *setting, int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetIntElemP()

MK_I32 LcSettingGetIntElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetIntElem

◆ LcSettingGetIntP()

MK_I32 LcSettingGetIntP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetInt

◆ LcSettingGetMember()

static LC_CFS LcSettingGetMember ( LC_CFSN setting,
MK_STRN name )
static

This function fetches the child setting named name from the group setting

It returns the requested setting on success, or NULL if the setting was not found or if setting is not a group.

Definition at line 89 of file LcSettingC_lc.h.

89 {
90 LC_INSTANCE_HDL(setting);
91 return LcSettingC_ObjNew(config_setting_get_member(setting->nat, name));
92 }
LIBCONFIG_API config_setting_t * config_setting_get_member(const config_setting_t *setting, const char *name)
+ Here is the caller graph for this function:

◆ LcSettingGetMemberP()

LC_CFS LcSettingGetMemberP ( LC_CFSN setting,
MK_STRN name )

Non-inline replacement for LcSettingGetMember

◆ LcSettingGetString()

static MK_STRN LcSettingGetString ( LC_CFSN setting)
static

These functions return the value of the given setting

If the type of the setting does not match the type requested, a 0 or NULL value is returned. Storage for the string returned by SettingGetString is managed by the library and released automatically when the setting is destroyed or when the setting's value is changed; the string must not be freed by the caller.

See also
SettingGetBool, SettingGetFloat, SettingGetInt, SettingGetInt64

Definition at line 157 of file LcSettingC_lc.h.

157 {
158 LC_INSTANCE_HDL(setting);
159 MK_STRN __retVal__L = config_setting_get_string(setting->nat);
160 return __retVal__L;
161 }
const MK_STRB * MK_STRN
LIBCONFIG_API const char * config_setting_get_string(const config_setting_t *setting)
+ Here is the caller graph for this function:

◆ LcSettingGetStringElem()

static MK_STRN LcSettingGetStringElem ( LC_CFSN setting,
MK_I32 idx )
static

These functions return the value at the specified index index in the setting setting

If the setting is not an array or list, or if the type of the element does not match the type requested, or if index is out of range, they return 0 or NULL. Storage for the string returned by SettingGetStringElem is managed by the library and released automatically when the setting is destroyed or when its value is changed; the string must not be freed by the caller.

See also
SettingGetBoolElem, SettingGetFloatElem, SettingGetInt64Elem, SettingGetIntElem

Definition at line 164 of file LcSettingC_lc.h.

164 {
165 LC_INSTANCE_HDL(setting);
166 MK_STRN __retVal__L = config_setting_get_string_elem(setting->nat, idx);
167 return __retVal__L;
168 }
LIBCONFIG_API const char * config_setting_get_string_elem(const config_setting_t *setting, int idx)
+ Here is the caller graph for this function:

◆ LcSettingGetStringElemP()

MK_STRN LcSettingGetStringElemP ( LC_CFSN setting,
MK_I32 idx )

Non-inline replacement for LcSettingGetStringElem

◆ LcSettingGetStringP()

MK_STRN LcSettingGetStringP ( LC_CFSN setting)

Non-inline replacement for LcSettingGetString