RSC
0.17.1
|
An OptionHandler which collects the options in an instance of Properties. More...
#include <CollectingOptionHandler.h>
Public Member Functions | |
CollectingOptionHandler () | |
Creates a new handler which uses an empty Properties instance for collecting options. More... | |
CollectingOptionHandler (const rsc::runtime::Properties &properties) | |
Creates a new handler which will use a copy of the passed Properties instance. More... | |
void | handleOption (const std::vector< std::string > &key, const std::string &value) |
This method is called once for each individual option available from a given ConfigSource. More... | |
rsc::runtime::Properties | getOptions () const |
Returns the options this handler has collected so far. More... | |
Public Member Functions inherited from rsc::config::OptionHandler | |
virtual | ~OptionHandler () |
Private Attributes | |
rsc::runtime::Properties | options |
An OptionHandler which collects the options in an instance of Properties.
Definition at line 42 of file CollectingOptionHandler.h.
rsc::config::CollectingOptionHandler::CollectingOptionHandler | ( | ) |
Creates a new handler which uses an empty Properties instance for collecting options.
Definition at line 34 of file CollectingOptionHandler.cpp.
rsc::config::CollectingOptionHandler::CollectingOptionHandler | ( | const rsc::runtime::Properties & | properties | ) |
Creates a new handler which will use a copy of the passed Properties instance.
properties | A properties instance to start from. Won't be modified directly. A copy will be used. |
Definition at line 37 of file CollectingOptionHandler.cpp.
runtime::Properties rsc::config::CollectingOptionHandler::getOptions | ( | ) | const |
Returns the options this handler has collected so far.
Definition at line 55 of file CollectingOptionHandler.cpp.
References options.
|
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. |
Implements rsc::config::OptionHandler.
Definition at line 42 of file CollectingOptionHandler.cpp.
References options.
|
private |
Definition at line 75 of file CollectingOptionHandler.h.
Referenced by getOptions(), and handleOption().