#include <configurationservice.h>
|
void | registerRunningStateMutable (BuildId buildId, RunningStateMutable *pRunningStateMutable) |
|
void | registerNumericAny (BuildId buildId, 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) |
|
void | registerNonNumericAny (BuildId buildId, 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) |
|
ConfigurationManifest | getConfigurationManifest (BuildId buildId) const |
|
std::vector< std::pair< std::string, std::vector< Any > > > | queryConfiguration (BuildId buildId, const std::vector< std::string > &names={}) const |
|
ConfigurationUpdate | buildUpdates (BuildId buildId, const ConfigurationUpdateRequest ¶meters) |
|
void | update (BuildId buildId, const ConfigurationUpdate &update) |
|
void | registerValidator (BuildId buildId, ConfigurationValidator validator) |
|
Definition at line 52 of file configurationservice.h.
◆ ConfigurationService()
EMANE::ConfigurationService::ConfigurationService |
( |
| ) |
|
|
protected |
◆ buildUpdates()
Builds a ConfigurationUpdate for processing by a component. Local configuration cache is updated and future calls to getConfigurationInfos will reflect the latest values processed by buildUpdates. Cache update only occurs if the entire update request is successfully validated.
- Parameters
-
buildId | Build id of the component |
parameters | Name string values pairs of requested configuration updates. |
- Returns
- ConfigurationInfos container holding configuration information.
- Exceptions
-
ConfigurationException | Thrown when a configuration validation error occurs. Errors include values or instance counts out of range, incorrect data type, string to data type conversion errors and unregistered configuration targets. |
Definition at line 232 of file configurationservice.cc.
◆ destroy()
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
◆ getConfigurationManifest()
Gets the configuration information for all registered configuration items associated with a specified build id.
- Parameters
-
buildId | Build id of the component |
- Returns
- ConfigurationInfos container holding configuration information.
- Exceptions
-
Definition at line 160 of file configurationservice.cc.
◆ instance()
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
- Returns
- A pointer to T
Definition at line 56 of file singleton.h.
◆ queryConfiguration()
std::vector< std::pair< std::string, std::vector< EMANE::Any > > > EMANE::ConfigurationService::queryConfiguration |
( |
BuildId |
buildId, |
|
|
const std::vector< std::string > & |
names = {} |
|
) |
| const |
Gets the configuration parmeter value(s) for specified registered configuration items associated with a specified build id.
- Parameters
-
buildId | Build id of the component |
names | Names of items of interest. Empty list will return all items. |
- Returns
- configuration name values pairs
- Exceptions
-
ConfigurationException | Thrown when an invalid buildId is specified or an unknown configuration parameter is requested. |
Definition at line 182 of file configurationservice.cc.
◆ registerNonNumericAny()
void EMANE::ConfigurationService::registerNonNumericAny |
( |
BuildId |
buildId, |
|
|
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 |
|
) |
| |
Registers a non-numeric configuration item using an Any.
- Parameters
-
buildId | Build id of the registering component |
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
-
Definition at line 75 of file configurationservice.cc.
◆ registerNumericAny()
void EMANE::ConfigurationService::registerNumericAny |
( |
BuildId |
buildId, |
|
|
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 |
|
) |
| |
Registers a numeric configuration item using an Any.
- Parameters
-
buildId | Build id of the registering component |
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
-
Definition at line 49 of file configurationservice.cc.
◆ registerRunningStateMutable()
◆ registerValidator()
◆ update()
The documentation for this class was generated from the following files: