RSC
0.7.17
|
Implementations of this interface obtain configuration information somewhere and pass individual configuration options to an OptionHandler instance. More...
#include <ConfigSource.h>
Public Member Functions | |
virtual | ~ConfigSource () |
virtual void | provideOptions (OptionHandler &handler)=0 |
Implementations should pass all configuration options to handler. More... | |
Implementations of this interface obtain configuration information somewhere and pass individual configuration options to an OptionHandler instance.
Definition at line 42 of file ConfigSource.h.
|
virtual |
Definition at line 32 of file ConfigSource.cpp.
|
pure virtual |
Implementations should pass all configuration options to handler.
handler | The handler to which all option should be passed. |
std::invalid_argument | may be thrown when the options this source uses in the background are not well-formated |
Implemented in rsc::config::EnvironmentVariableSource, and rsc::config::ConfigFileSource.