# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CVariable Class Template Reference

Create a variable that can be modify in realtime. More...

#include <command.h>

Inheritance diagram for NLMISC::CVariable:

NLMISC::ICommand List of all members.

Public Methods

 CVariable (const char *commandName, const char *commandHelp, T *pointer)
virtual bool execute (const std::vector< std::string > &args, NLMISC::CLog &log)

Private Attributes

T * _Pointer

Detailed Description

template<class T>
class NLMISC::CVariable< T >

Create a variable that can be modify in realtime.

Don't use this class directly but use the macro NLMISC_VARIABLE

Author:
Vianney Lecroart , Nevrax France
Date:
2001

Definition at line 246 of file command.h.


Constructor & Destructor Documentation

template<class T>
NLMISC::CVariable< T >::CVariable const char *    commandName,
const char *    commandHelp,
T *    pointer
[inline]
 

Definition at line 249 of file command.h.

References _Pointer, NLMISC::ICommand::ICommand, pointer, NLMISC::ICommand::Type, value, and NLMISC::ICommand::Variable.


Member Function Documentation

template<class T>
virtual bool NLMISC::CVariable< T >::execute const std::vector< std::string > &    args,
NLMISC::CLog   log
[inline, virtual]
 

Implements NLMISC::ICommand.

Definition at line 250 of file command.h.

References NLMISC::ICommand::_CommandName, _Pointer, NLMISC::CLog::displayNL, and s.


Member Data Documentation

template<class T>
T* NLMISC::CVariable::_Pointer [private]
 

Definition at line 269 of file command.h.

Referenced by CVariable, and execute.


The documentation for this class was generated from the following file: