theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_Is_C_API

LcSettingC - various functions to check a settingMore...

+ Collaboration diagram for LcSettingC_Is_C_API:

Functions

static MK_BOOL LcSettingIsAggregate (LC_CFSN setting)
 These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 
static MK_BOOL LcSettingIsArray (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static MK_BOOL LcSettingIsGroup (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static MK_BOOL LcSettingIsList (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
static MK_BOOL LcSettingIsNumber (LC_CFSN setting)
 These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 
static MK_BOOL LcSettingIsRoot (LC_CFSN setting)
 This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwise …
 
static MK_BOOL LcSettingIsScalar (LC_CFSN setting)
 These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …
 

LcSettingC - LcSettingC_Is_C_API - function

MK_BOOL LcSettingIsAggregateP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsAggregate
 
MK_BOOL LcSettingIsArrayP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsArray
 
MK_BOOL LcSettingIsGroupP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsGroup
 
MK_BOOL LcSettingIsListP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsList
 
MK_BOOL LcSettingIsNumberP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsNumber
 
MK_BOOL LcSettingIsRootP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsRoot
 
MK_BOOL LcSettingIsScalarP (LC_CFSN setting)
 Non-inline replacement for LcSettingIsScalar
 

Detailed Description

LcSettingC - various functions to check a setting

Function Documentation

◆ LcSettingIsAggregate()

static MK_BOOL LcSettingIsAggregate ( LC_CFSN setting)
inlinestatic

These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsNumber, SettingIsScalar

Definition at line 173 of file LcSettingC_lc.h.

173 {
174 LC_INSTANCE_HDL(setting);
175 return (MK_BOOL)config_setting_is_aggregate(setting->nat);
176 }
#define LC_INSTANCE_HDL(x)
bool MK_BOOL
LIBCONFIG_API int config_setting_is_aggregate(const config_setting_t *setting)
config_setting_t * nat
internal - link between LcSettingS and native library

◆ LcSettingIsAggregateP()

MK_BOOL LcSettingIsAggregateP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsAggregate

◆ LcSettingIsArray()

static MK_BOOL LcSettingIsArray ( LC_CFSN setting)
inlinestatic

These convenience functions, which are implemented as macros, test if the setting setting is of a given type …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsGroup, SettingIsList

Definition at line 179 of file LcSettingC_lc.h.

179 {
180 LC_INSTANCE_HDL(setting);
181 return config_setting_is_array(setting->nat);
182 }
#define config_setting_is_array(S)

◆ LcSettingIsArrayP()

MK_BOOL LcSettingIsArrayP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsArray

◆ LcSettingIsGroup()

static MK_BOOL LcSettingIsGroup ( LC_CFSN setting)
inlinestatic

These convenience functions, which are implemented as macros, test if the setting setting is of a given type …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsArray, SettingIsList

Definition at line 185 of file LcSettingC_lc.h.

185 {
186 LC_INSTANCE_HDL(setting);
187 return config_setting_is_group(setting->nat);
188 }
#define config_setting_is_group(S)

◆ LcSettingIsGroupP()

MK_BOOL LcSettingIsGroupP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsGroup

◆ LcSettingIsList()

static MK_BOOL LcSettingIsList ( LC_CFSN setting)
inlinestatic

These convenience functions, which are implemented as macros, test if the setting setting is of a given type …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsArray, SettingIsGroup

Definition at line 191 of file LcSettingC_lc.h.

191 {
192 LC_INSTANCE_HDL(setting);
193 return config_setting_is_list(setting->nat);
194 }
#define config_setting_is_list(S)

◆ LcSettingIsListP()

MK_BOOL LcSettingIsListP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsList

◆ LcSettingIsNumber()

static MK_BOOL LcSettingIsNumber ( LC_CFSN setting)
inlinestatic

These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsAggregate, SettingIsScalar

Definition at line 197 of file LcSettingC_lc.h.

197 {
198 LC_INSTANCE_HDL(setting);
199 return config_setting_is_number(setting->nat);
200 }
#define config_setting_is_number(S)

◆ LcSettingIsNumberP()

MK_BOOL LcSettingIsNumberP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsNumber

◆ LcSettingIsRoot()

static MK_BOOL LcSettingIsRoot ( LC_CFSN setting)
inlinestatic

This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwise …

Definition at line 203 of file LcSettingC_lc.h.

203 {
204 LC_INSTANCE_HDL(setting);
205 return config_setting_is_root(setting->nat);
206 }
#define config_setting_is_root( S)

◆ LcSettingIsRootP()

MK_BOOL LcSettingIsRootP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsRoot

◆ LcSettingIsScalar()

static MK_BOOL LcSettingIsScalar ( LC_CFSN setting)
inlinestatic

These convenience functions, some of which are implemented as macros, test if the setting setting is of an aggregate type (a group, array, or list), of a scalar type (integer, 64-bit integer, floating point, boolean, or string), and of a number (integer, 64-bit integer, or floating point), respectively …

They return CONFIG_TRUE or CONFIG_FALSE.

See also
SettingIsAggregate, SettingIsNumber

Definition at line 209 of file LcSettingC_lc.h.

209 {
210 LC_INSTANCE_HDL(setting);
211 return (MK_BOOL)config_setting_is_scalar(setting->nat);
212 }
LIBCONFIG_API int config_setting_is_scalar(const config_setting_t *setting)

◆ LcSettingIsScalarP()

MK_BOOL LcSettingIsScalarP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsScalar