RSC  0.7.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsc::config::ConfigSource Class Referenceabstract

Implementations of this interface obtain configuration information somewhere and pass individual configuration options to an OptionHandler instance. More...

#include <ConfigSource.h>

Inheritance diagram for rsc::config::ConfigSource:
Inheritance graph
Collaboration diagram for rsc::config::ConfigSource:
Collaboration graph

Public Member Functions

virtual ~ConfigSource ()
 
virtual void provideOptions (OptionHandler &handler)=0
 Implementations should pass all configuration options to handler. More...
 

Detailed Description

Implementations of this interface obtain configuration information somewhere and pass individual configuration options to an OptionHandler instance.

Author
jmoringe

Definition at line 42 of file ConfigSource.h.

Constructor & Destructor Documentation

rsc::config::ConfigSource::~ConfigSource ( )
virtual

Definition at line 32 of file ConfigSource.cpp.

Member Function Documentation

virtual void rsc::config::ConfigSource::provideOptions ( OptionHandler handler)
pure virtual

Implementations should pass all configuration options to handler.

Parameters
handlerThe handler to which all option should be passed.
Exceptions
std::invalid_argumentmay be thrown when the options this source uses in the background are not well-formated

Implemented in rsc::config::EnvironmentVariableSource, and rsc::config::ConfigFileSource.


The documentation for this class was generated from the following files: