theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - 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

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 …
 
MK_BOOL LcSettingIsArray (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
MK_BOOL LcSettingIsGroup (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
MK_BOOL LcSettingIsList (LC_CFSN setting)
 These convenience functions, which are implemented as macros, test if the setting setting is of a given type …
 
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 …
 
MK_BOOL LcSettingIsRoot (LC_CFSN setting)
 This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwise …
 
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

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

Detailed Description

LcSettingC - various functions to check a setting

Function Documentation

◆ LcSettingIsAggregate()

MK_BOOL LcSettingIsAggregate ( LC_CFSN setting)
inline

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 165 of file LcSettingC_lc.h.

165 {
166 return (MK_BOOL)config_setting_is_aggregate(setting->nat);
167 }
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()

LC_EXTERN MK_BOOL LcSettingIsAggregateP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsAggregate

◆ LcSettingIsArray()

MK_BOOL LcSettingIsArray ( LC_CFSN setting)
inline

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 170 of file LcSettingC_lc.h.

170 {
171 return config_setting_is_array(setting->nat);
172 }
#define config_setting_is_array(S)

◆ LcSettingIsArrayP()

LC_EXTERN MK_BOOL LcSettingIsArrayP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsArray

◆ LcSettingIsGroup()

MK_BOOL LcSettingIsGroup ( LC_CFSN setting)
inline

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 175 of file LcSettingC_lc.h.

175 {
176 return config_setting_is_group(setting->nat);
177 }
#define config_setting_is_group(S)

◆ LcSettingIsGroupP()

LC_EXTERN MK_BOOL LcSettingIsGroupP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsGroup

◆ LcSettingIsList()

MK_BOOL LcSettingIsList ( LC_CFSN setting)
inline

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 180 of file LcSettingC_lc.h.

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

◆ LcSettingIsListP()

LC_EXTERN MK_BOOL LcSettingIsListP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsList

◆ LcSettingIsNumber()

MK_BOOL LcSettingIsNumber ( LC_CFSN setting)
inline

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 185 of file LcSettingC_lc.h.

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

◆ LcSettingIsNumberP()

LC_EXTERN MK_BOOL LcSettingIsNumberP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsNumber

◆ LcSettingIsRoot()

MK_BOOL LcSettingIsRoot ( LC_CFSN setting)
inline

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

Definition at line 190 of file LcSettingC_lc.h.

190 {
191 return config_setting_is_root(setting->nat);
192 }
#define config_setting_is_root( S)

◆ LcSettingIsRootP()

LC_EXTERN MK_BOOL LcSettingIsRootP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsRoot

◆ LcSettingIsScalar()

MK_BOOL LcSettingIsScalar ( LC_CFSN setting)
inline

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 195 of file LcSettingC_lc.h.

195 {
196 return (MK_BOOL)config_setting_is_scalar(setting->nat);
197 }
LIBCONFIG_API int config_setting_is_scalar(const config_setting_t *setting)

◆ LcSettingIsScalarP()

LC_EXTERN MK_BOOL LcSettingIsScalarP ( LC_CFSN setting)

Non-inline replacement for LcSettingIsScalar