The ConfigurationRegistrar allows NEM layers to register the configuration items they require.
More...
#include <configurationregistrar.h>
|
| virtual | ~ConfigurationRegistrar () |
| |
| template<typename T > |
| 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={}) |
| |
| template<typename T > |
| 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 |
| |
|
| | ConfigurationRegistrar () |
| |
| 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 |
| |
| 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.
- Note
- Registration may only occur during Component::initialize()
Definition at line 56 of file configurationregistrar.h.
◆ ~ConfigurationRegistrar()
| EMANE::ConfigurationRegistrar::~ConfigurationRegistrar |
( |
| ) |
|
|
inlinevirtual |
◆ ConfigurationRegistrar()
| EMANE::ConfigurationRegistrar::ConfigurationRegistrar |
( |
| ) |
|
|
inlineprotected |
◆ registerNonNumeric()
template<typename T >
| void EMANE::ConfigurationRegistrar::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 = {} |
|
) |
| |
Registers a non-numeric configuration item
- Parameters
-
| sName | Name of the configuration item to be registered |
| properties | Configuration properties mask |
| values | Default configuration values |
| sUsage | Parameter usage description |
| minOccurs | Minimum values allowed |
| maxOccurs | Maximum values allowed |
| sRegexPattern | Regular expression to match against |
- Exceptions
-
Definition at line 68 of file configurationregistrar.inl.
◆ registerNonNumericAny()
| virtual void EMANE::ConfigurationRegistrar::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 = {} |
|
) |
| |
|
protectedpure virtual |
Registers a non-numeric configuration item using an Any.
- Parameters
-
| sName | Name of the configuration item to be registered |
| type | Underlying Any type |
| properties | Configuration properties mask |
| values | Default configuration values |
| sUsage | Parameter usage description |
| minOccurs | Minimum values allowed |
| maxOccurs | Maximum values allowed |
| sRegexPattern | Regular expression to match against |
- Exceptions
-
◆ registerNumeric()
template<typename T >
| void EMANE::ConfigurationRegistrar::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 = {} |
|
) |
| |
Registers a numeric configuration item
- Parameters
-
| sName | Name of the configuration item to be registered |
| properties | Configuration properties mask |
| values | Default configuration values |
| sUsage | Parameter usage description |
| minValue | Minimum acceptable value |
| maxValue | Maximum acceptable value |
| minOccurs | Minimum values allowed |
| maxOccurs | Maximum values allowed |
| sRegexPattern | Regular expression to match against |
- Exceptions
-
Definition at line 42 of file configurationregistrar.inl.
◆ registerNumericAny()
| virtual void EMANE::ConfigurationRegistrar::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 = {} |
|
) |
| |
|
protectedpure virtual |
Registers a numeric configuration item using an Any.
- Parameters
-
| sName | Name of the configuration item to be registered |
| type | Underlying Any type |
| properties | Configuration properties mask |
| values | Default configuration values |
| sUsage | Parameter usage description |
| minValue | Minimum acceptable value |
| maxValue | Maximum acceptable value |
| minOccurs | Minimum values allowed |
| maxOccurs | Maximum values allowed |
| sRegexPattern | Regular expression to match against |
- Exceptions
-
◆ registerValidator()
The documentation for this class was generated from the following files: