22 #ifndef _CONFIGURATION_CONFIGURATION_H 23 #define _CONFIGURATION_CONFIGURATION_H 30 #include <boost/program_options.hpp> 33 namespace Configuration {
151 template <
typename T>
165 template <
typename T>
168 template <
typename T>
Configuration(long manager_id)
Constructs a new Configuration instance.
Superclass of all configuration classes.
void declareDependency()
Declares a Configuration as dependency.
State & getCurrentState()
Returns the current state of the configuration.
virtual std::map< std::string, OptionDescriptionList > getProgramOptions()
Returns the program options defined by a specific configuration.
virtual void preInitialize(const UserValues &args)
Method which is called before the initialization phase.
virtual void initialize(const UserValues &args)
Method which is called during the initialization phase.
The postInitialize() method has been called.
The preInitialize() method has been called and waits for initialization.
std::set< std::type_index > m_dependencies
const std::set< std::type_index > & getDependencies()
Returns the dependencies of the configuration.
virtual ~Configuration()=default
Destructor.
The initialize() method has been called.
State
Defines the different states the configuration object can be in.
The object has just been constructed.
virtual void postInitialize(const UserValues &args)
Method which is called after the initialization phase.
T & getDependency()
Returns a dependency.