Console::VariableTemplate< T > Class Template Reference

#include <Variable.h>

Inheritance diagram for Console::VariableTemplate< T >:

Console::Variable List of all members.

Public Member Functions

 VariableTemplate (T *variable)
std::string getValue () const
std::string setValue (const std::string &parameter)

Detailed Description

template<typename T>
class Console::VariableTemplate< T >

A specialization of Variable for simple types which can be written and read using iostreams.


Constructor & Destructor Documentation

template<typename T>
Console::VariableTemplate< T >::VariableTemplate T *  variable  )  [inline]
 

Initializes the VariableTemplate with the given variable pointer.

Parameters:
variable a pointer to the variable to manipulate.


Member Function Documentation

template<typename T>
std::string Console::VariableTemplate< T >::getValue  )  const [inline, virtual]
 

Gets the value of the variable represented as a string.

Returns:
a string representing the value of the variable.

Implements Console::Variable.

template<typename T>
std::string Console::VariableTemplate< T >::setValue const std::string &  parameter  )  [inline, virtual]
 

Sets the value of the variable from the parameter string.

Parameters:
parameter the value to set the variable with.
Returns:
the newly set value or "Parse error".

Implements Console::Variable.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 08:42:48 2006 for GPU Thesis by  doxygen 1.4.6-NO