3 #include "../third-party/json.hpp" 71 std::ofstream
out(filename);
94 if (!t.good())
return;
96 std::istreambuf_iterator<char>());
static basic_json parse(T(&array)[N], const parser_callback_t cb=nullptr)
deserialize from an array
static config_file & instance()
a class to store JSON values
std::string get_folder_path(special_folder f)
bool operator==(const config_file &other) const
GLsizei const GLchar *const * string
std::string get_default(const char *key, const char *def) const
std::string get(const char *key, const char *def) const
bool contains(const char *key) const
config_file & operator=(const config_file &other)
void set(const char *key, const char *value)
std::map< std::string, std::string > _defaults
string_t dump(const int indent=-1) const
serialization
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
std::map< std::string, std::string > _values
basic_json<> json
default JSON class
void set_default(const char *key, const char *calculate)
a template for a random access iterator for the basic_json class