Class that encapsulates recursive_configurable class. More...
#include <recursive_configurable_module.h>
Public Member Functions | |
recursive_configurable_driver (std::string name, std::string argname="") | |
Constructor for recursive_configurable_driver. More... | |
recursive_configurable_driver (recursive_configurable *parent, std::string name) | |
Constructor for recursive_configurable_driver. More... | |
void | set_name (std::string long_name, std::string argname="") |
Set name. More... | |
void | set_argument_name (std::string argname) |
Set argument name. More... | |
void | set_environment (std::string name, const void *value) |
Set the pointer to an environmental value associated with an input name. More... | |
virtual void | load (configuration &config) override |
Do loading. More... | |
virtual void | configure (configuration &config) override |
Do configure. More... | |
virtual void | initialize (const configurable::environment_map &environment) override |
Initialize with an environmental map. More... | |
T * | operator-> () |
Get the raw pointer. More... | |
const T * | operator-> () const |
Get the const raw pointer. More... | |
T * | get () |
Get the raw pointer. More... | |
const T * | get () const |
Get the raw pointer. More... | |
![]() | |
virtual void | setup_now (configuration &config=get_global_configuration()) |
Run load - configure - initialize processes. | |
virtual bool | not_recursive () |
Check if this instance is not derived from recursive_configurable. More... | |
Additional Inherited Members | |
![]() | |
using | environment_map = std::map< std::string, const void * > |
Type for environment_map. | |
![]() | |
static configuration & | set_global_configuration (const configuration &config) |
Assign the global settings of the program. More... | |
static configuration & | get_global_configuration () |
Get the global settings of the program. More... | |
template<class T > | |
static const T & | get_env (const environment_map &environment, std::string key) |
Extract an specified type of pointer from the input environment. More... | |
![]() | |
bool | check_set (const environment_map &environment, std::vector< std::string > names) |
Check if the values for a variable keys exist. More... | |
Class that encapsulates recursive_configurable class.
|
inline |
Constructor for recursive_configurable_driver.
[in] | name | Module name. |
[in] | argname | Argument name for this instance. |
|
inline |
Constructor for recursive_configurable_driver.
[in] | parent | Full mame for this instance. |
[in] | name | Module name. |
|
inlineoverridevirtual |
|
inline |
Get the raw pointer.
|
inline |
Get the raw pointer.
|
inlineoverridevirtual |
Initialize with an environmental map.
[in] | environment | Enivironmental map. |
Reimplemented from configurable.
|
inlineoverridevirtual |
|
inline |
Get the raw pointer.
|
inline |
Get the const raw pointer.
|
inline |
Set argument name.
[in] | argname | Argument name for this instance. |
|
inline |
Set the pointer to an environmental value associated with an input name.
[in] | name | Name for the environmental value to set. |
[in] | value | Pointer to the value to set. |
|
inline |
Set name.
[in] | long_name | Module name. |
[in] | argname | Argument name for this instance. |