#include <PhAux.h>
Public Member Functions | |
GlobalVariables () | |
Construct. | |
~GlobalVariables () | |
Destruct. | |
void | setVariable (string name, any val) |
Set variable. | |
any | getVariable (string name) |
Get variable. | |
void | clear () |
Clear. |
This class offers a rather simple way for all objects to access a list of global variables.
void phoenix::aux::GlobalVariables::setVariable | ( | string | name, | |
any | val | |||
) |
Set variable.
Sets the value with with given name to the given value.
name | Name of the variable. | |
val | Any data type that can be contained by boost::any. |
any phoenix::aux::GlobalVariables::getVariable | ( | string | name | ) |
Get variable.
Gets the variable with the given name.
name | The name of the variable. |
void phoenix::aux::GlobalVariables::clear | ( | ) |
Clear.
Clears all the variables.