1 #if !defined(h_3e645482_ae6a_43e5_8f81_abbc4200212d) 2 #define h_3e645482_ae6a_43e5_8f81_abbc4200212d 25 void assign(
const std::string& param_value, T& value)
const 31 void assign_impl(
const std::string& param_value, T& value)
const 38 void assign_impl(
const std::string& param_value, std::string& value)
const 46 s <<
"Property '" << param_name <<
"' required to configure " <<
tag_;
95 typedef std::map<std::string, std::string>
storage_t;
102 const std::string& operator[](
const std::string& v)
const;
103 std::string&
operator[](
const std::string& v) {
return storage_[v]; }
105 const_iterator find(
const std::string& t)
const;
106 const_iterator
begin()
const {
return storage_.begin(); }
107 const_iterator
end()
const {
return storage_.end(); }
141 #endif // h_3e645482_ae6a_43e5_8f81_abbc4200212d optional_params_validator optional(const char *param, T &value) const
std::string & operator[](const std::string &v)
required_params_validator required(const char *param, T &value) const
const_iterator end() const
required_params_validator required(const char *param, T &value) const
void assign(const std::string ¶m_value, T &value) const
virtual bool operator()() const
Get node value.
optional_params_validator optional(const char *param, T &value) const
const FactoryParams * params_
void assign_impl(const std::string ¶m_value, T &value) const
#define RUNTIME_EXCEPTION
Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
std::map< std::string, std::string > storage_t
void assign_impl(const std::string ¶m_value, std::string &value) const
required_params_validator(const char *tag, const FactoryParams *params)
storage_t::const_iterator const_iterator
const_iterator find(const std::string &t) const
base_validator_data(const char *tag, const FactoryParams *params)
optional_params_validator(const char *tag, const FactoryParams *params)
void throw_error(const char *param_name) const
const required_params_validator & operator()(const char *param, T &value) const
const optional_params_validator & operator()(const char *param, T &value) const
const_iterator begin() const
details::parameter_validator get_for(const char *tag) const
parameter_validator(const char *tag, const FactoryParams *params)