RSC
0.17.1
|
Implementations of this interface receive options from ConfigSource objects. More...
#include <OptionHandler.h>
Public Member Functions | |
virtual | ~OptionHandler () |
virtual void | handleOption (const std::vector< std::string > &key, const std::string &value)=0 |
This method is called once for each individual option available from a given ConfigSource. More... | |
Implementations of this interface receive options from ConfigSource objects.
Options are represented as key-value pairs and individually passed to the handler.
Definition at line 43 of file OptionHandler.h.
|
virtual |
Definition at line 32 of file OptionHandler.cpp.
|
pure virtual |
This method is called once for each individual option available from a given ConfigSource.
key | A list of hierarchical key components that identify the option. |
value | The value of the option. |
Implemented in rsc::logging::OptionBasedConfigurator, rsc::config::CollectingOptionHandler, rsc::plugins::Configurator, and rsc::config::PropertyHandler.
Referenced by rsc::config::ConfigFileSource::provideOptions(), rsc::config::CommandLinePropertySource::provideOptions(), and rsc::config::EnvironmentVariableSource::provideOptions().