Extended configurable class that holds multiple children of configurable. More...
#include <configurable.h>
Classes | |
class | environment_setter |
Class for setting environemt. More... | |
Public Member Functions | |
recursive_configurable ()=default | |
Default constructor. | |
virtual void | recursive_load (configuration &config) |
Load the program itself and relay the same to its children. Used to load files and libraries into memory. More... | |
virtual void | recursive_configure (configuration &config) |
Configure the program itself and relay the same to its children. Used to load and set parameters. More... | |
virtual void | recursive_initialize (const configurable::environment_map &environment=configurable::environment_map()) |
Initialize the program itself and relay the same to its children. Used to get things ready for actual use. More... | |
virtual bool | is_ready () const |
Get if the instance is initialized. More... | |
virtual void | add_child (configurable *child) |
Add a child instance. More... | |
virtual void | add_child (recursive_configurable *child) |
Add a child instance. More... | |
virtual void | remove_child (configurable *child) |
Remove a child instance. More... | |
virtual void | remove_child (recursive_configurable *child) |
Remove a child instance. More... | |
virtual void | setup_now (configuration &config=get_global_configuration()) override |
Run recursive_load - recursive_configure - recursive_initialize processes. | |
virtual bool | not_recursive () override |
Check if this instance is not derived from recursive_configurable. 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) |
Load the program. Used to load files and libraries into memory. More... | |
virtual void | configure (configuration &config) |
Configure the program. Used to load and set parameters. 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... | |
Extended configurable class that holds multiple children of configurable.
|
inlinevirtual |
Add a child instance.
[in] | child | Pointer to an instance to add. |
|
inlinevirtual |
Add a child instance.
[in] | child | Pointer to an instance to add. |
|
inlinevirtual |
Get if the instance is initialized.
true
if the instance is initialized false
otherwise.
|
inlineoverridevirtual |
Check if this instance is not derived from recursive_configurable.
Always
returns true. Reimplemented from configurable.
|
inlinevirtual |
Configure the program itself and relay the same to its children. Used to load and set parameters.
[in] | config | Configuration setting. |
Reimplemented in recursive_configurable_module.
|
inlinevirtual |
Initialize the program itself and relay the same to its children. Used to get things ready for actual use.
[in] | config | Configuration setting. |
Reimplemented in drawable.
|
inlinevirtual |
Load the program itself and relay the same to its children. Used to load files and libraries into memory.
[in] | config | Configuration setting. |
Reimplemented in recursive_configurable_module.
|
inlinevirtual |
Remove a child instance.
[in] | child | Pointer to an instance to remove. |
|
inlinevirtual |
Remove a child instance.
[in] | child | Pointer to an instance to remove. |
|
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. |