Streamer fluid modeling - An overview of ARCoS
1.0
|
Header file of library libconfig. More...
#include <stdio.h>
Go to the source code of this file.
Classes | |
union | config_value_t |
struct | config_setting_t |
struct | config_list_t |
struct | config_t |
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 } |
Header file of library libconfig.
Definition in file libconfig.h.
#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 | ) |
Definition at line 218 of file libconfig.h.
#define config_setting_is_number | ( | S | ) |
Definition at line 223 of file libconfig.h.
#define config_setting_is_scalar | ( | S | ) |
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, | |
F | |||
) | (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, | |
W | |||
) | (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 union config_value_t config_value_t |
typedef struct config_setting_t config_setting_t |
typedef struct config_list_t config_list_t |
enum config_error_t |
Definition at line 92 of file libconfig.h.
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(*)(void *) | destructor | ||
) |
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_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 | ) |
LIBCONFIG_API config_setting_t* config_setting_get_elem | ( | const config_setting_t * | setting, |
unsigned int | idx | ||
) |
LIBCONFIG_API config_setting_t* config_setting_get_member | ( | const config_setting_t * | setting, |
const char * | name | ||
) |
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 | ||
) |
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 | ||
) |