RSC  0.17.1
rsc::config::OptionHandler Class Referenceabstract

Implementations of this interface receive options from ConfigSource objects. More...

#include <OptionHandler.h>

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

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...
 

Detailed Description

Implementations of this interface receive options from ConfigSource objects.

Options are represented as key-value pairs and individually passed to the handler.

Author
jmoringe

Definition at line 43 of file OptionHandler.h.

Constructor & Destructor Documentation

rsc::config::OptionHandler::~OptionHandler ( )
virtual

Definition at line 32 of file OptionHandler.cpp.

Member Function Documentation

virtual void rsc::config::OptionHandler::handleOption ( const std::vector< std::string > &  key,
const std::string &  value 
)
pure virtual

This method is called once for each individual option available from a given ConfigSource.

Parameters
keyA list of hierarchical key components that identify the option.
valueThe 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().

Here is the caller graph for this function:


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