GRASP rci-qed
toml.h
Go to the documentation of this file.
1 #ifndef _TOML_H_
2 #define _TOML_H_
3 
4 class TOMLWrapper;
5 
6 extern "C" {
7  TOMLWrapper * toml_parse_file(const char * filename);
8 
9  bool toml_contains(TOMLWrapper & wrapper, const char * key);
10 
11  bool toml_get_double(TOMLWrapper & wrapper, const char * key, double & value);
12  bool toml_get_int(TOMLWrapper & wrapper, const char * key, int & value);
13  bool toml_get_bool(TOMLWrapper & wrapper, const char * key, bool & value);
14 
15  bool toml_get_string(TOMLWrapper * wrapper, const char * key, char** value, int * length);
16  void toml_string_delete(char * string);
17 }
18 
19 #endif
bool toml_get_int(TOMLWrapper &wrapper, const char *key, int &value)
bool toml_contains(TOMLWrapper &wrapper, const char *key)
Definition: toml.cc:20
void toml_string_delete(char *string)
Definition: toml.cc:51
TOMLWrapper * toml_parse_file(const char *filename)
Definition: toml.cc:15
bool toml_get_double(TOMLWrapper &wrapper, const char *key, double &value)
bool toml_get_bool(TOMLWrapper &wrapper, const char *key, bool &value)
Definition: toml.cc:10
bool toml_get_string(TOMLWrapper *wrapper, const char *key, char **value, int *length)
Definition: toml.cc:40