8 #if !defined(h_3e645482_ae6a_43e5_8f81_abbc4200212d) 9 #define h_3e645482_ae6a_43e5_8f81_abbc4200212d 28 template <
typename T>
void assign(
const std::string& param_value, T& value)
const {
32 template <
typename T>
void assign_impl(
const std::string& param_value, T& value)
const {
38 void assign_impl(
const std::string& param_value, std::string& value)
const {
44 s <<
"Property '" << param_name <<
"' required to configure " <<
tag_;
45 throw std::runtime_error(s.str());
49 class parameter_validator;
53 typedef std::map<std::string, std::string> storage_t;
60 const std::string& operator[](
const std::string& v)
const;
65 const_iterator find(
const std::string& t)
const;
67 return storage_.begin();
70 return storage_.end();
75 class optional_params_validator;
81 #if defined(_MSC_VER) && _MSC_VER < 1300 88 template <
typename T> optional_params_validator
optional(
const char* param, T& value)
const;
139 #if !(defined(_MSC_VER) && _MSC_VER < 1300) 140 template <
typename T>
154 #endif // h_3e645482_ae6a_43e5_8f81_abbc4200212d Definition: FactoryParams.hh:20
details::parameter_validator get_for(const char *tag) const
Definition: FactoryParams.hh:149
std::string & operator[](const std::string &v)
Definition: FactoryParams.hh:61
const optional_params_validator & operator()(const char *param, T &value) const
Definition: FactoryParams.hh:113
Definition: FactoryParams.hh:102
void assign(const std::string ¶m_value, T &value) const
Definition: FactoryParams.hh:28
Definition: FactoryParams.hh:122
optional_params_validator(const char *tag, const FactoryParams *params)
Definition: FactoryParams.hh:104
void assign_impl(const std::string ¶m_value, T &value) const
Definition: FactoryParams.hh:32
storage_t::const_iterator const_iterator
Definition: FactoryParams.hh:58
Definition: FactoryParams.hh:76
optional_params_validator optional(const char *param, T &value) const
Definition: FactoryParams.hh:141
#define LOG4CPP_EXPORT
Definition: Export.hh:26
Definition: FactoryParams.hh:52
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
const required_params_validator & operator()(const char *param, T &value) const
Definition: FactoryParams.hh:91
void assign_impl(const std::string ¶m_value, std::string &value) const
Definition: FactoryParams.hh:38
const_iterator end() const
Definition: FactoryParams.hh:69
const char * tag_
Definition: FactoryParams.hh:25
base_validator_data(const char *tag, const FactoryParams *params)
Definition: FactoryParams.hh:22
void throw_error(const char *param_name) const
Definition: FactoryParams.hh:42
parameter_validator(const char *tag, const FactoryParams *params)
Definition: FactoryParams.hh:124
required_params_validator required(const char *param, T &value) const
Definition: FactoryParams.hh:126
required_params_validator required(const char *param, T &value) const
Definition: FactoryParams.hh:107
const FactoryParams * params_
Definition: FactoryParams.hh:26
required_params_validator(const char *tag, const FactoryParams *params)
Definition: FactoryParams.hh:78
optional_params_validator optional(const char *param, T &value) const
Definition: FactoryParams.hh:132
const_iterator begin() const
Definition: FactoryParams.hh:66
const_iterator find(const std::string &t) const
Definition: FactoryParams.cpp:19