44 const std::initializer_list<T> & values,
45 const std::string & sUsage,
48 std::size_t minOccurs,
49 std::size_t maxOccurs,
50 const std::string & sRegexPattern)
52 static_assert(std::is_integral<T>() || std::is_floating_point<T>(),
"Type not convertable to numeric Any");
53 std::vector<Any> anys;
54 std::for_each(values.begin(),values.end(),[&anys](
const T & v){anys.push_back(
Any(v));});
70 const std::initializer_list<T> & values,
71 const std::string & sUsage,
72 std::size_t minOccurs,
73 std::size_t maxOccurs,
74 const std::string & sRegexPattern)
77 std::vector<Any> anys;
78 std::for_each(values.begin(),values.end(),[&anys](
const T & v){anys.push_back(
Any(v));});
virtual ~ConfigurationRegistrar()
void registerNonNumeric(const std::string &sName, const ConfigurationProperties &properties=ConfigurationProperties::NONE, const std::initializer_list< T > &values={}, const std::string &sUsage="", std::size_t minOccurs=1, std::size_t maxOccurs=1, const std::string &sRegexPattern={})
virtual void registerNonNumericAny(const std::string &sName, Any::Type type, const ConfigurationProperties &properties, const std::vector< Any > &values, const std::string &sUsage, std::size_t minOccurs, std::size_t maxOccurs, const std::string &sRegexPattern={})=0
virtual void registerNumericAny(const std::string &sName, Any::Type type, const ConfigurationProperties &properties, const std::vector< Any > &values, const std::string &sUsage, const Any &minValue, const Any &maxValue, std::size_t minOccurs, std::size_t maxOccurs, const std::string &sRegexPattern={})=0
void registerNumeric(const std::string &sName, const ConfigurationProperties &properties=ConfigurationProperties::NONE, const std::initializer_list< T > &values={}, const std::string &sUsage="", T minValue=std::numeric_limits< T >::lowest(), T maxValue=std::numeric_limits< T >::max(), std::size_t minOccurs=1, std::size_t maxOccurs=1, const std::string &sRegexPattern={})
The Any class can contain an instance of one of any type in its support type set. ...