35 std::string
name ()
const {
return _name; }
62 return to_string<T>(
value);
65 virtual bool set (T val) {
76 value = string_to<T>(s);
93 std::string
get()
const {
101 virtual bool set (std::string val) {
136 set (string_to<T>(s));
152 bool set (std::string val) {
void add_to_node(XMLNode &) const
bool set_from_node(XMLNode const &)
ConfigVariableBase(std::string str)
virtual ~ConfigVariableBase()
virtual std::string get_as_string() const =0
virtual void set_from_string(std::string const &)=0
ConfigVariableWithMutation(std::string name, std::string val, std::string(*m)(std::string))
virtual std::string get_for_save()
void set_from_string(std::string const &s)
bool set(std::string val)
std::string unmutated_value
void set_from_string(std::string const &s)
ConfigVariableWithMutation(std::string name, T val, T(*m)(T))
std::string get_as_string() const
ConfigVariable(std::string str)
virtual void set_from_string(std::string const &s)
virtual bool set(std::string val)
virtual std::string get_for_save()
ConfigVariable(std::string str, std::string val)
std::string get_as_string() const
ConfigVariable(std::string str, T val)
ConfigVariable(std::string str)
virtual void set_from_string(std::string const &s)