/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/json.hh Source File#
|
DiFfRG
|
json.hh
Go to the documentation of this file.
std::string get_string(const std::string &key, const std::string &def) const
Get the value of a key in the json object, with a default value.
bool operator==(const JSONValue &other) const
Equality operator. Checks all values in the json object to be equal.
JSONValue(const std::string filename)
Construct a new JSONValue object from a json file.
void set_double(const std::string &key, double value)
Set the value of a key in the json object.
void set_bool(const std::string &key, bool value)
Set the value of a key in the json object.
void set_string(const std::string &key, const std::string &value)
Set the value of a key in the json object.
void set_int(const std::string &key, int value)
Set the value of a key in the json object.
int get_int(const std::string &key, const int def) const
Get the value of a key in the json object, with a default value.
json::value & operator()()
The call operator gives access to the wrapped json value.
void pretty_print(std::ostream &os, json::value const &v, std::string *indent=nullptr) const
double get_double(const std::string &key) const
Get the value of a key in the json object.
std::string get_string(const std::string &key) const
Get the value of a key in the json object.
bool get_bool(const std::string &key) const
Get the value of a key in the json object.
bool get_bool(const std::string &key, const bool def) const
Get the value of a key in the json object, with a default value.
int get_int(const std::string &key) const
Get the value of a key in the json object.
uint get_uint(const std::string &key, const uint def) const
Get the value of a key in the json object, with a default value.
uint get_uint(const std::string &key) const
Get the value of a key in the json object.
void set_uint(const std::string &key, uint value)
Set the value of a key in the json object.
double get_double(const std::string &key, const double def) const
Get the value of a key in the json object, with a default value.
Definition complex_math.hh:10
Generated by