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>
#define LOG4CPP_EXPORT
Definition Export.hh:26
Definition FactoryParams.hh:52
const_iterator begin() const
Definition FactoryParams.hh:66
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 std::string & operator[](const std::string &v) const
Definition FactoryParams.cpp:11
storage_t::const_iterator const_iterator
Definition FactoryParams.hh:58
const_iterator end() const
Definition FactoryParams.hh:69
void assign(const std::string ¶m_value, T &value) const
Definition FactoryParams.hh:28
const FactoryParams * params_
Definition FactoryParams.hh:26
base_validator_data(const char *tag, const FactoryParams *params)
Definition FactoryParams.hh:22
const char * tag_
Definition FactoryParams.hh:25
void assign_impl(const std::string ¶m_value, std::string &value) const
Definition FactoryParams.hh:38
void assign_impl(const std::string ¶m_value, T &value) const
Definition FactoryParams.hh:32
void throw_error(const char *param_name) const
Definition FactoryParams.hh:42
Definition FactoryParams.hh:102
const optional_params_validator & operator()(const char *param, T &value) const
Definition FactoryParams.hh:113
required_params_validator required(const char *param, T &value) const
Definition FactoryParams.hh:107
optional_params_validator(const char *tag, const FactoryParams *params)
Definition FactoryParams.hh:104
Definition FactoryParams.hh:122
required_params_validator required(const char *param, T &value) const
Definition FactoryParams.hh:126
optional_params_validator optional(const char *param, T &value) const
Definition FactoryParams.hh:132
parameter_validator(const char *tag, const FactoryParams *params)
Definition FactoryParams.hh:124
Definition FactoryParams.hh:76
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:141
const required_params_validator & operator()(const char *param, T &value) const
Definition FactoryParams.hh:91
Definition FactoryParams.hh:19
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16