RSC
0.12.1
|
Instances of this class can be used to configure the #Manager based on configuration options. More...
#include <Configurator.h>
Public Member Functions | |
Configurator (ManagerPtr manager, const std::vector< boost::filesystem::path > &defaultPath) | |
Constructs a Configurator with default plugin search path defaultPath. More... | |
virtual | ~Configurator () |
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... | |
Public Member Functions inherited from rsc::config::OptionHandler | |
virtual | ~OptionHandler () |
Private Member Functions | |
void | addDefaultPath () |
std::vector< std::string > | splitValue (const std::string &value) const |
Private Attributes | |
logging::LoggerPtr | logger |
ManagerPtr | manager |
bool | pathSet |
std::vector < boost::filesystem::path > | defaultPath |
std::set< std::string > | load |
Instances of this class can be used to configure the #Manager based on configuration options.
Note that the configuration may be performed when the object is destructed.
Definition at line 51 of file Configurator.h.
rsc::plugins::Configurator::Configurator | ( | ManagerPtr | manager, |
const std::vector< boost::filesystem::path > & | defaultPath | ||
) |
Constructs a Configurator
with default plugin search path defaultPath.
manager | the manager to configure |
defaultPath | A #vector of #boost::filesystem::path objects which should be installed as plugin search path in case no plugin search path is configured. |
Definition at line 45 of file Configurator.cpp.
|
virtual |
Definition at line 53 of file Configurator.cpp.
References addDefaultPath(), defaultPath, load, logger, manager, pathSet, RSCDEBUG, and RSCINFO.
|
private |
Definition at line 168 of file Configurator.cpp.
References defaultPath, and manager.
Referenced by handleOption(), and ~Configurator().
|
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 96 of file Configurator.cpp.
References addDefaultPath(), load, logger, manager, pathSet, RSCDEBUG, and splitValue().
|
private |
Definition at line 175 of file Configurator.cpp.
Referenced by handleOption().
|
private |
Definition at line 76 of file Configurator.h.
Referenced by addDefaultPath(), and ~Configurator().
|
private |
Definition at line 77 of file Configurator.h.
Referenced by handleOption(), and ~Configurator().
|
private |
Definition at line 71 of file Configurator.h.
Referenced by handleOption(), and ~Configurator().
|
private |
Definition at line 73 of file Configurator.h.
Referenced by addDefaultPath(), handleOption(), and ~Configurator().
|
private |
Definition at line 75 of file Configurator.h.
Referenced by handleOption(), and ~Configurator().