theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - cs - py - rb - jv - cc
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 176 of file LcSettingC_lc.h.

176 {
177 LC_INSTANCE_HDL(setting);
178 return (MK_BOOL)config_setting_is_aggregate(setting->nat);
179 }
#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 182 of file LcSettingC_lc.h.

182 {
183 LC_INSTANCE_HDL(setting);
184 return config_setting_is_array(setting->nat);
185 }
#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 188 of file LcSettingC_lc.h.

188 {
189 LC_INSTANCE_HDL(setting);
190 return config_setting_is_group(setting->nat);
191 }
#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 194 of file LcSettingC_lc.h.

194 {
195 LC_INSTANCE_HDL(setting);
196 return config_setting_is_list(setting->nat);
197 }
#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 200 of file LcSettingC_lc.h.

200 {
201 LC_INSTANCE_HDL(setting);
202 return config_setting_is_number(setting->nat);
203 }
#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 206 of file LcSettingC_lc.h.

206 {
207 LC_INSTANCE_HDL(setting);
208 return config_setting_is_root(setting->nat);
209 }
#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 212 of file LcSettingC_lc.h.

212 {
213 LC_INSTANCE_HDL(setting);
214 return (MK_BOOL)config_setting_is_scalar(setting->nat);
215 }
LIBCONFIG_API int config_setting_is_scalar(const config_setting_t *setting)

◆ LcSettingIsScalarP()

MK_BOOL LcSettingIsScalarP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsScalar