phoenix::aux::GlobalVariables Class Reference

Global Variables. More...

#include <PhAux.h>

List of all members.

Public Member Functions

 GlobalVariables ()
 Construct.
 ~GlobalVariables ()
 Destruct.
void setVariable (string name, any val)
 Set variable.
any getVariable (string name)
 Get variable.
void clear ()
 Clear.


Detailed Description

Global Variables.

This class offers a rather simple way for all objects to access a list of global variables.


Member Function Documentation

void phoenix::aux::GlobalVariables::setVariable ( string  name,
any  val 
)

Set variable.

Sets the value with with given name to the given value.

Parameters:
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.

Parameters:
name The name of the variable.
Returns:
A boost::any containing the variable.

void phoenix::aux::GlobalVariables::clear (  ) 

Clear.

Clears all the variables.


The documentation for this class was generated from the following file:
Generated on Tue Nov 20 21:59:25 2007 for Phoenix by  doxygen 1.5.4