Streamer fluid modeling - An overview of ARCoS  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions
libconfig.h File Reference

Header file of library libconfig. More...

#include <stdio.h>
Include dependency graph for libconfig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  config_value_t
 
struct  config_setting_t
 
struct  config_list_t
 
struct  config_t
 

Macros

#define LIBCONFIG_API
 
#define LIBCONFIG_VER_MAJOR   1
 
#define LIBCONFIG_VER_MINOR   4
 
#define LIBCONFIG_VER_REVISION   9
 
#define CONFIG_TYPE_NONE   0
 
#define CONFIG_TYPE_GROUP   1
 
#define CONFIG_TYPE_INT   2
 
#define CONFIG_TYPE_INT64   3
 
#define CONFIG_TYPE_FLOAT   4
 
#define CONFIG_TYPE_STRING   5
 
#define CONFIG_TYPE_BOOL   6
 
#define CONFIG_TYPE_ARRAY   7
 
#define CONFIG_TYPE_LIST   8
 
#define CONFIG_FORMAT_DEFAULT   0
 
#define CONFIG_FORMAT_HEX   1
 
#define CONFIG_OPTION_AUTOCONVERT   0x01
 
#define CONFIG_TRUE   (1)
 
#define CONFIG_FALSE   (0)
 
#define config_get_include_dir(C)   ((C)->include_dir)
 
#define config_setting_type(S)   ((S)->type)
 
#define config_setting_is_group(S)   ((S)->type == CONFIG_TYPE_GROUP)
 
#define config_setting_is_array(S)   ((S)->type == CONFIG_TYPE_ARRAY)
 
#define config_setting_is_list(S)   ((S)->type == CONFIG_TYPE_LIST)
 
#define config_setting_is_aggregate(S)
 
#define config_setting_is_number(S)
 
#define config_setting_is_scalar(S)
 
#define config_setting_name(S)   ((S)->name)
 
#define config_setting_parent(S)   ((S)->parent)
 
#define config_setting_is_root(S)   ((S)->parent ? CONFIG_FALSE : CONFIG_TRUE)
 
#define config_setting_get_hook(S)   ((S)->hook)
 
#define config_root_setting(C)   ((C)->root)
 
#define config_set_default_format(C,F)   (C)->default_format = (F)
 
#define config_get_default_format(C)   ((C)->default_format)
 
#define config_set_tab_width(C,W)   (C)->tab_width = ((W) & 0x0F)
 
#define config_get_tab_width(C)   ((C)->tab_width)
 
#define config_setting_source_line(S)   ((S)->line)
 
#define config_setting_source_file(S)   ((S)->file)
 
#define config_error_text(C)   ((C)->error_text)
 
#define config_error_file(C)   ((C)->error_file)
 
#define config_error_line(C)   ((C)->error_line)
 
#define config_error_type(C)   ((C)->error_type)
 

Typedefs

typedef union config_value_t config_value_t
 
typedef struct config_setting_t config_setting_t
 
typedef struct config_list_t config_list_t
 
typedef struct config_t config_t
 

Enumerations

enum  config_error_t { CONFIG_ERR_NONE = 0, CONFIG_ERR_FILE_IO = 1, CONFIG_ERR_PARSE = 2 }
 

Functions

LIBCONFIG_API int config_read (config_t *config, FILE *stream)
 
LIBCONFIG_API void config_write (const config_t *config, FILE *stream)
 
LIBCONFIG_API void config_set_default_format (config_t *config, short format)
 
LIBCONFIG_API void config_set_auto_convert (config_t *config, int flag)
 
LIBCONFIG_API int config_get_auto_convert (const config_t *config)
 
LIBCONFIG_API int config_read_string (config_t *config, const char *str)
 
LIBCONFIG_API int config_read_file (config_t *config, const char *filename)
 
LIBCONFIG_API int config_write_file (config_t *config, const char *filename)
 
LIBCONFIG_API void config_set_destructor (config_t *config, void(*destructor)(void *))
 
LIBCONFIG_API void config_set_include_dir (config_t *config, const char *include_dir)
 
LIBCONFIG_API void config_init (config_t *config)
 
LIBCONFIG_API void config_destroy (config_t *config)
 
LIBCONFIG_API int config_setting_get_int (const config_setting_t *setting)
 
LIBCONFIG_API long long config_setting_get_int64 (const config_setting_t *setting)
 
LIBCONFIG_API double config_setting_get_float (const config_setting_t *setting)
 
LIBCONFIG_API int config_setting_get_bool (const config_setting_t *setting)
 
LIBCONFIG_API const char * config_setting_get_string (const config_setting_t *setting)
 
LIBCONFIG_API int config_setting_lookup_int (const config_setting_t *setting, const char *name, int *value)
 
LIBCONFIG_API int config_setting_lookup_int64 (const config_setting_t *setting, const char *name, long long *value)
 
LIBCONFIG_API int config_setting_lookup_float (const config_setting_t *setting, const char *name, double *value)
 
LIBCONFIG_API int config_setting_lookup_bool (const config_setting_t *setting, const char *name, int *value)
 
LIBCONFIG_API int config_setting_lookup_string (const config_setting_t *setting, const char *name, const char **value)
 
LIBCONFIG_API int config_setting_set_int (config_setting_t *setting, int value)
 
LIBCONFIG_API int config_setting_set_int64 (config_setting_t *setting, long long value)
 
LIBCONFIG_API int config_setting_set_float (config_setting_t *setting, double value)
 
LIBCONFIG_API int config_setting_set_bool (config_setting_t *setting, int value)
 
LIBCONFIG_API int config_setting_set_string (config_setting_t *setting, const char *value)
 
LIBCONFIG_API int config_setting_set_format (config_setting_t *setting, short format)
 
LIBCONFIG_API short config_setting_get_format (const config_setting_t *setting)
 
LIBCONFIG_API int config_setting_get_int_elem (const config_setting_t *setting, int idx)
 
LIBCONFIG_API long long config_setting_get_int64_elem (const config_setting_t *setting, int idx)
 
LIBCONFIG_API double config_setting_get_float_elem (const config_setting_t *setting, int idx)
 
LIBCONFIG_API int config_setting_get_bool_elem (const config_setting_t *setting, int idx)
 
LIBCONFIG_API const char * config_setting_get_string_elem (const config_setting_t *setting, int idx)
 
LIBCONFIG_API config_setting_tconfig_setting_set_int_elem (config_setting_t *setting, int idx, int value)
 
LIBCONFIG_API config_setting_tconfig_setting_set_int64_elem (config_setting_t *setting, int idx, long long value)
 
LIBCONFIG_API config_setting_tconfig_setting_set_float_elem (config_setting_t *setting, int idx, double value)
 
LIBCONFIG_API config_setting_tconfig_setting_set_bool_elem (config_setting_t *setting, int idx, int value)
 
LIBCONFIG_API config_setting_tconfig_setting_set_string_elem (config_setting_t *setting, int idx, const char *value)
 
LIBCONFIG_API int config_setting_index (const config_setting_t *setting)
 
LIBCONFIG_API int config_setting_length (const config_setting_t *setting)
 
LIBCONFIG_API config_setting_tconfig_setting_get_elem (const config_setting_t *setting, unsigned int idx)
 
LIBCONFIG_API config_setting_tconfig_setting_get_member (const config_setting_t *setting, const char *name)
 
LIBCONFIG_API config_setting_tconfig_setting_add (config_setting_t *parent, const char *name, int type)
 
LIBCONFIG_API int config_setting_remove (config_setting_t *parent, const char *name)
 
LIBCONFIG_API int config_setting_remove_elem (config_setting_t *parent, unsigned int idx)
 
LIBCONFIG_API void config_setting_set_hook (config_setting_t *setting, void *hook)
 
LIBCONFIG_API config_setting_tconfig_lookup (const config_t *config, const char *path)
 
LIBCONFIG_API config_setting_tconfig_lookup_from (config_setting_t *setting, const char *path)
 
LIBCONFIG_API int config_lookup_int (const config_t *config, const char *path, int *value)
 
LIBCONFIG_API int config_lookup_int64 (const config_t *config, const char *path, long long *value)
 
LIBCONFIG_API int config_lookup_float (const config_t *config, const char *path, double *value)
 
LIBCONFIG_API int config_lookup_bool (const config_t *config, const char *path, int *value)
 
LIBCONFIG_API int config_lookup_string (const config_t *config, const char *path, const char **value)
 

Detailed Description

Header file of library libconfig.

Definition in file libconfig.h.

Macro Definition Documentation

#define LIBCONFIG_API

Definition at line 43 of file libconfig.h.

#define LIBCONFIG_VER_MAJOR   1

Definition at line 46 of file libconfig.h.

#define LIBCONFIG_VER_MINOR   4

Definition at line 47 of file libconfig.h.

#define LIBCONFIG_VER_REVISION   9

Definition at line 48 of file libconfig.h.

#define CONFIG_TYPE_NONE   0

Definition at line 52 of file libconfig.h.

#define CONFIG_TYPE_GROUP   1

Definition at line 53 of file libconfig.h.

#define CONFIG_TYPE_INT   2

Definition at line 54 of file libconfig.h.

#define CONFIG_TYPE_INT64   3

Definition at line 55 of file libconfig.h.

#define CONFIG_TYPE_FLOAT   4

Definition at line 56 of file libconfig.h.

#define CONFIG_TYPE_STRING   5

Definition at line 57 of file libconfig.h.

#define CONFIG_TYPE_BOOL   6

Definition at line 58 of file libconfig.h.

#define CONFIG_TYPE_ARRAY   7

Definition at line 59 of file libconfig.h.

#define CONFIG_TYPE_LIST   8

Definition at line 60 of file libconfig.h.

#define CONFIG_FORMAT_DEFAULT   0

Definition at line 62 of file libconfig.h.

#define CONFIG_FORMAT_HEX   1

Definition at line 63 of file libconfig.h.

#define CONFIG_OPTION_AUTOCONVERT   0x01

Definition at line 65 of file libconfig.h.

#define CONFIG_TRUE   (1)

Definition at line 67 of file libconfig.h.

#define CONFIG_FALSE   (0)

Definition at line 68 of file libconfig.h.

#define config_get_include_dir (   C)    ((C)->include_dir)

Definition at line 205 of file libconfig.h.

#define config_setting_type (   S)    ((S)->type)

Definition at line 208 of file libconfig.h.

#define config_setting_is_group (   S)    ((S)->type == CONFIG_TYPE_GROUP)

Definition at line 211 of file libconfig.h.

#define config_setting_is_array (   S)    ((S)->type == CONFIG_TYPE_ARRAY)

Definition at line 213 of file libconfig.h.

#define config_setting_is_list (   S)    ((S)->type == CONFIG_TYPE_LIST)

Definition at line 215 of file libconfig.h.

#define config_setting_is_aggregate (   S)
Value:
(((S)->type == CONFIG_TYPE_GROUP) || ((S)->type == CONFIG_TYPE_LIST) \
|| ((S)->type == CONFIG_TYPE_ARRAY))

Definition at line 218 of file libconfig.h.

#define config_setting_is_number (   S)
Value:
(((S)->type == CONFIG_TYPE_INT) \
|| ((S)->type == CONFIG_TYPE_INT64) \
|| ((S)->type == CONFIG_TYPE_FLOAT))

Definition at line 223 of file libconfig.h.

#define config_setting_is_scalar (   S)
Value:
(((S)->type == CONFIG_TYPE_BOOL) || ((S)->type == CONFIG_TYPE_STRING) \

Definition at line 228 of file libconfig.h.

#define config_setting_name (   S)    ((S)->name)

Definition at line 232 of file libconfig.h.

#define config_setting_parent (   S)    ((S)->parent)

Definition at line 236 of file libconfig.h.

#define config_setting_is_root (   S)    ((S)->parent ? CONFIG_FALSE : CONFIG_TRUE)

Definition at line 240 of file libconfig.h.

#define config_setting_get_hook (   S)    ((S)->hook)

Definition at line 263 of file libconfig.h.

#define config_root_setting (   C)    ((C)->root)

Definition at line 283 of file libconfig.h.

#define config_set_default_format (   C,
 
)    (C)->default_format = (F)

Definition at line 287 of file libconfig.h.

#define config_get_default_format (   C)    ((C)->default_format)

Definition at line 291 of file libconfig.h.

#define config_set_tab_width (   C,
 
)    (C)->tab_width = ((W) & 0x0F)

Definition at line 294 of file libconfig.h.

#define config_get_tab_width (   C)    ((C)->tab_width)

Definition at line 298 of file libconfig.h.

#define config_setting_source_line (   S)    ((S)->line)

Definition at line 301 of file libconfig.h.

#define config_setting_source_file (   S)    ((S)->file)

Definition at line 305 of file libconfig.h.

#define config_error_text (   C)    ((C)->error_text)

Definition at line 309 of file libconfig.h.

#define config_error_file (   C)    ((C)->error_file)

Definition at line 312 of file libconfig.h.

#define config_error_line (   C)    ((C)->error_line)

Definition at line 315 of file libconfig.h.

#define config_error_type (   C)    ((C)->error_type)

Definition at line 318 of file libconfig.h.

Typedef Documentation

typedef struct config_list_t config_list_t
typedef struct config_t config_t

Enumeration Type Documentation

Enumerator:
CONFIG_ERR_NONE 
CONFIG_ERR_FILE_IO 
CONFIG_ERR_PARSE 

Definition at line 92 of file libconfig.h.

Function Documentation

LIBCONFIG_API int config_read ( config_t config,
FILE *  stream 
)
LIBCONFIG_API void config_write ( const config_t config,
FILE *  stream 
)
LIBCONFIG_API void config_set_default_format ( config_t config,
short  format 
)
LIBCONFIG_API void config_set_auto_convert ( config_t config,
int  flag 
)
LIBCONFIG_API int config_get_auto_convert ( const config_t config)
LIBCONFIG_API int config_read_string ( config_t config,
const char *  str 
)
LIBCONFIG_API int config_read_file ( config_t config,
const char *  filename 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_write_file ( config_t config,
const char *  filename 
)

Here is the caller graph for this function:

LIBCONFIG_API void config_set_destructor ( config_t config,
void(*)(void *)  destructor 
)
LIBCONFIG_API void config_set_include_dir ( config_t config,
const char *  include_dir 
)
LIBCONFIG_API void config_init ( config_t config)

Here is the caller graph for this function:

LIBCONFIG_API void config_destroy ( config_t config)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_get_int ( const config_setting_t setting)
LIBCONFIG_API long long config_setting_get_int64 ( const config_setting_t setting)
LIBCONFIG_API double config_setting_get_float ( const config_setting_t setting)
LIBCONFIG_API int config_setting_get_bool ( const config_setting_t setting)
LIBCONFIG_API const char* config_setting_get_string ( const config_setting_t setting)
LIBCONFIG_API int config_setting_lookup_int ( const config_setting_t setting,
const char *  name,
int *  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_lookup_int64 ( const config_setting_t setting,
const char *  name,
long long *  value 
)
LIBCONFIG_API int config_setting_lookup_float ( const config_setting_t setting,
const char *  name,
double *  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_lookup_bool ( const config_setting_t setting,
const char *  name,
int *  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_lookup_string ( const config_setting_t setting,
const char *  name,
const char **  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_set_int ( config_setting_t setting,
int  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_set_int64 ( config_setting_t setting,
long long  value 
)
LIBCONFIG_API int config_setting_set_float ( config_setting_t setting,
double  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_set_bool ( config_setting_t setting,
int  value 
)
LIBCONFIG_API int config_setting_set_string ( config_setting_t setting,
const char *  value 
)

Here is the caller graph for this function:

LIBCONFIG_API int config_setting_set_format ( config_setting_t setting,
short  format 
)
LIBCONFIG_API short config_setting_get_format ( const config_setting_t setting)
LIBCONFIG_API int config_setting_get_int_elem ( const config_setting_t setting,
int  idx 
)
LIBCONFIG_API long long config_setting_get_int64_elem ( const config_setting_t setting,
int  idx 
)
LIBCONFIG_API double config_setting_get_float_elem ( const config_setting_t setting,
int  idx 
)
LIBCONFIG_API int config_setting_get_bool_elem ( const config_setting_t setting,
int  idx 
)
LIBCONFIG_API const char* config_setting_get_string_elem ( const config_setting_t setting,
int  idx 
)
LIBCONFIG_API config_setting_t* config_setting_set_int_elem ( config_setting_t setting,
int  idx,
int  value 
)
LIBCONFIG_API config_setting_t* config_setting_set_int64_elem ( config_setting_t setting,
int  idx,
long long  value 
)
LIBCONFIG_API config_setting_t* config_setting_set_float_elem ( config_setting_t setting,
int  idx,
double  value 
)
LIBCONFIG_API config_setting_t* config_setting_set_bool_elem ( config_setting_t setting,
int  idx,
int  value 
)
LIBCONFIG_API config_setting_t* config_setting_set_string_elem ( config_setting_t setting,
int  idx,
const char *  value 
)
LIBCONFIG_API int config_setting_index ( const config_setting_t setting)
LIBCONFIG_API int config_setting_length ( const config_setting_t setting)

Here is the caller graph for this function:

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:

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:

LIBCONFIG_API config_setting_t* config_setting_add ( config_setting_t parent,
const char *  name,
int  type 
)
LIBCONFIG_API int config_setting_remove ( config_setting_t parent,
const char *  name 
)
LIBCONFIG_API int config_setting_remove_elem ( config_setting_t parent,
unsigned int  idx 
)
LIBCONFIG_API void config_setting_set_hook ( config_setting_t setting,
void *  hook 
)
LIBCONFIG_API config_setting_t* config_lookup ( const config_t config,
const char *  path 
)

Here is the caller graph for this function:

LIBCONFIG_API config_setting_t* config_lookup_from ( config_setting_t setting,
const char *  path 
)
LIBCONFIG_API int config_lookup_int ( const config_t config,
const char *  path,
int *  value 
)
LIBCONFIG_API int config_lookup_int64 ( const config_t config,
const char *  path,
long long *  value 
)
LIBCONFIG_API int config_lookup_float ( const config_t config,
const char *  path,
double *  value 
)
LIBCONFIG_API int config_lookup_bool ( const config_t config,
const char *  path,
int *  value 
)
LIBCONFIG_API int config_lookup_string ( const config_t config,
const char *  path,
const char **  value 
)

Here is the caller graph for this function: