Console::VariableTemplate< bool > Class Template Reference

#include <Variable.h>

Inheritance diagram for Console::VariableTemplate< bool >:

Console::Variable List of all members.

Public Member Functions

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

Detailed Description

template<>
class Console::VariableTemplate< bool >

A specialization of VariableTemplate for bool. Allows toggling of bools.


Constructor & Destructor Documentation

Console::VariableTemplate< bool >::VariableTemplate bool *  variable  )  [inline]
 

Initializes the VariableTemplate with the given bool pointer.

Parameters:
variable a pointer to the bool to manipulate.


Member Function Documentation

std::string Console::VariableTemplate< bool >::getValue  )  const [inline, virtual]
 

Gets the bool value represented as a string.

Returns:
a string value representing the bool.

Implements Console::Variable.

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

Sets the bool value. If the passed parameter is "toggle", the bool will be set to its inverse.

Parameters:
parameter a string representing the new bool value, or "toggle".
Returns:
a string representing the bool, 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