20 #ifndef _CONFIGJSON_H_
21 #define _CONFIGJSON_H_
25 #include "pism/util/Config.hh"
39 std::string
dump()
const;
45 virtual bool is_set_impl(
const std::string &name)
const;
53 const std::vector<double> &values);
57 virtual void set_string_impl(
const std::string &name,
const std::string &value);
62 virtual void set_flag_impl(
const std::string& name,
bool value);
virtual Flags all_flags_impl() const
virtual std::string get_string_impl(const std::string &name) const
virtual std::vector< double > get_numbers_impl(const std::string &name) const
virtual double get_number_impl(const std::string &name) const
virtual Doubles all_doubles_impl() const
virtual void set_number_impl(const std::string &name, double value)
virtual void read_impl(const File &nc)
void init_from_file(const std::string &filename)
virtual void set_flag_impl(const std::string &name, bool value)
void init_from_string(const std::string &string)
virtual void set_string_impl(const std::string &name, const std::string &value)
virtual bool is_set_impl(const std::string &name) const
virtual void set_numbers_impl(const std::string &name, const std::vector< double > &values)
ConfigJSON(units::System::Ptr unit_system)
virtual void write_impl(const File &nc) const
virtual Strings all_strings_impl() const
virtual bool get_flag_impl(const std::string &name) const
The JSON-based Config implementation.
std::map< std::string, std::string > Strings
std::map< std::string, std::vector< double > > Doubles
std::map< std::string, bool > Flags
std::string filename() const
Returns the name of the file used to initialize the database.
A class for storing and accessing PISM configuration flags and parameters.
High-level PISM I/O class.
std::shared_ptr< System > Ptr