34 #ifndef EMANECONFIGURATIONREGISTRAR_HEADER_ 35 #define EMANECONFIGURATIONREGISTRAR_HEADER_ 42 #include <initializer_list> 83 const std::initializer_list<T> & values = {},
84 const std::string & sUsage =
"",
85 T minValue = std::numeric_limits<T>::lowest(),
86 T maxValue = std::numeric_limits<T>::max(),
87 std::size_t minOccurs = 1,
88 std::size_t maxOccurs = 1,
89 const std::string & sRegexPattern = {});
107 const std::initializer_list<T> & values = {},
108 const std::string & sUsage =
"",
109 std::size_t minOccurs = 1,
110 std::size_t maxOccurs = 1,
111 const std::string & sRegexPattern = {});
153 const std::vector<Any> & values,
154 const std::string & sUsage,
155 const Any & minValue,
156 const Any & maxValue,
157 std::size_t minOccurs,
158 std::size_t maxOccurs,
159 const std::string & sRegexPattern = {}) = 0;
179 const std::vector<Any> & values,
180 const std::string & sUsage,
181 std::size_t minOccurs,
182 std::size_t maxOccurs,
183 const std::string & sRegexPattern = {}) = 0;
190 #endif //EMANECONFIGURATIONREGISTRAR_HEADER_ 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 registerValidator(ConfigurationValidator validator)=0
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
The ConfigurationRegistrar allows NEM layers to register the configuration items they require...
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={})
std::function< std::pair< std::string, bool >(const ConfigurationUpdate &update) noexcept > ConfigurationValidator
The Any class can contain an instance of one of any type in its support type set. ...