ConsoleRuleMethodIAdapter< T > Class Template Reference

#include <ConsoleRuleMethodIAdapter.h>

Inheritance diagram for ConsoleRuleMethodIAdapter< T >:

ConsoleRule

List of all members.

Public Member Functions

 ConsoleRuleMethodIAdapter (T *inst, void(T::*call)(), const char *name)
 ConsoleRuleMethodIAdapter (T *inst, void(T::*call)(), const char *name, const std::vector< ConsoleRuleParam > &params)
virtual ~ConsoleRuleMethodIAdapter ()
virtual void runRule (Console *console, const char *wholeLine, std::vector< ConsoleRuleValue > &values)

Protected Attributes

std::string name_
T * inst_
void(T::* call_ )()


Detailed Description

template<class T>
class ConsoleRuleMethodIAdapter< T >

Definition at line 35 of file ConsoleRuleMethodIAdapter.h.


Constructor & Destructor Documentation

template<class T>
ConsoleRuleMethodIAdapter< T >::ConsoleRuleMethodIAdapter ( T *  inst,
void(T::*)()  call,
const char *  name 
) [inline]

Definition at line 38 of file ConsoleRuleMethodIAdapter.h.

References Console::addRule(), and Console::instance().

template<class T>
ConsoleRuleMethodIAdapter< T >::ConsoleRuleMethodIAdapter ( T *  inst,
void(T::*)()  call,
const char *  name,
const std::vector< ConsoleRuleParam > &  params 
) [inline]

Definition at line 46 of file ConsoleRuleMethodIAdapter.h.

References Console::addRule(), and Console::instance().

template<class T>
virtual ConsoleRuleMethodIAdapter< T >::~ConsoleRuleMethodIAdapter (  )  [inline, virtual]

Definition at line 53 of file ConsoleRuleMethodIAdapter.h.

References Console::instance(), and Console::removeRule().


Member Function Documentation

template<class T>
virtual void ConsoleRuleMethodIAdapter< T >::runRule ( Console console,
const char *  wholeLine,
std::vector< ConsoleRuleValue > &  values 
) [inline, virtual]

Implements ConsoleRule.

Definition at line 58 of file ConsoleRuleMethodIAdapter.h.

References ConsoleRuleMethodIAdapter< T >::call_, and ConsoleRuleMethodIAdapter< T >::inst_.


Member Data Documentation

template<class T>
std::string ConsoleRuleMethodIAdapter< T >::name_ [protected]

Reimplemented from ConsoleRule.

Definition at line 64 of file ConsoleRuleMethodIAdapter.h.

template<class T>
T* ConsoleRuleMethodIAdapter< T >::inst_ [protected]

Definition at line 68 of file ConsoleRuleMethodIAdapter.h.

Referenced by ConsoleRuleMethodIAdapter< T >::runRule().

template<class T>
void(T::* ConsoleRuleMethodIAdapter< T >::call_)() [protected]

Referenced by ConsoleRuleMethodIAdapter< T >::runRule().


The documentation for this class was generated from the following file:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3