Holds configuration item meta information.
More...
#include <configurationinfo.h>
|
| ConfigurationInfo (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) |
|
| ConfigurationInfo (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) |
|
Any::Type | getType () const |
|
const std::string & | getName () const |
|
bool | hasDefault () const |
|
bool | isRequired () const |
|
bool | isModifiable () const |
|
std::size_t | getMinOccurs () const |
|
std::size_t | getMaxOccurs () const |
|
const std::vector< Any > & | getValues () const |
|
const Any & | getMinValue () const |
|
const Any & | getMaxValue () const |
|
const std::string & | getUsage () const |
|
const std::string & | getRegexPattern () const |
|
bool | isNumberic () const |
|
void | setValues (const std::vector< Any > &values) |
|
Holds configuration item meta information.
Definition at line 49 of file configurationinfo.h.
◆ ConfigurationInfo() [1/2]
EMANE::ConfigurationInfo::ConfigurationInfo |
( |
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 |
|
) |
| |
|
inline |
Creates a ConfiguratonInfo instance for numeric configuration items (ones with min and max values)
- Parameters
-
sName | Name of the configuration item |
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 |
Definition at line 36 of file configurationinfo.inl.
◆ ConfigurationInfo() [2/2]
EMANE::ConfigurationInfo::ConfigurationInfo |
( |
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 |
|
) |
| |
|
inline |
Creates a ConfiguratonInfo instance for non-numeric configuration items (ones without min and max values)
- Parameters
-
sName | Name of the configuration item |
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 |
Definition at line 60 of file configurationinfo.inl.
◆ getMaxOccurs()
std::size_t EMANE::ConfigurationInfo::getMaxOccurs |
( |
| ) |
const |
|
inline |
◆ getMaxValue()
const EMANE::Any & EMANE::ConfigurationInfo::getMaxValue |
( |
| ) |
const |
|
inline |
◆ getMinOccurs()
std::size_t EMANE::ConfigurationInfo::getMinOccurs |
( |
| ) |
const |
|
inline |
◆ getMinValue()
const EMANE::Any & EMANE::ConfigurationInfo::getMinValue |
( |
| ) |
const |
|
inline |
◆ getName()
const std::string & EMANE::ConfigurationInfo::getName |
( |
| ) |
const |
|
inline |
◆ getRegexPattern()
const std::string & EMANE::ConfigurationInfo::getRegexPattern |
( |
| ) |
const |
|
inline |
◆ getType()
◆ getUsage()
const std::string & EMANE::ConfigurationInfo::getUsage |
( |
| ) |
const |
|
inline |
◆ getValues()
const std::vector< EMANE::Any > & EMANE::ConfigurationInfo::getValues |
( |
| ) |
const |
|
inline |
◆ hasDefault()
bool EMANE::ConfigurationInfo::hasDefault |
( |
| ) |
const |
|
inline |
◆ isModifiable()
bool EMANE::ConfigurationInfo::isModifiable |
( |
| ) |
const |
|
inline |
Check if the item is running-state modifiable
- Returns
- true if running-state modifiable
Definition at line 106 of file configurationinfo.inl.
◆ isNumberic()
bool EMANE::ConfigurationInfo::isNumberic |
( |
| ) |
const |
|
inline |
◆ isRequired()
bool EMANE::ConfigurationInfo::isRequired |
( |
| ) |
const |
|
inline |
Check if the item is required (item must be present)
- Returns
- true if required
Definition at line 100 of file configurationinfo.inl.
◆ setValues()
void EMANE::ConfigurationInfo::setValues |
( |
const std::vector< Any > & |
values | ) |
|
|
inline |
The documentation for this class was generated from the following files: