Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ValueSetControl< T > Class Template Reference

#include <ValueSetControl.h>

Inheritance diagram for ValueSetControl< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T>
class ValueSetControl< T >

Upon activation, this control will set the target pointer to the specified value.

Definition at line 9 of file ValueSetControl.h.

Public Member Functions

virtual ControlBaseactivate (MotionManager::MC_ID display)
 assigns def to object pointed to by target
Constructors/Destructors
 ValueSetControl ()
 constructor
 ValueSetControl (const std::string &n, T *t)
 constructor
 ValueSetControl (const std::string &n, T *t, const T &d)
 constructor
 ValueSetControl (const ValueSetControl &vsc)
 copy constructor
ValueSetControl operator= (const ValueSetControl &vsc)
 assignment operator
virtual ~ValueSetControl ()
 destructor
Target
accessors for the target pointer

virtual T * getTarget () const
 returns the target pointer
virtual ValueSetControlsetTarget (T *t)
 sets the target pointer - the object pointed to will be overwritten on activate(); returns *this
Value
accessors for the default value assigned when activated

virtual T & getDefault ()
 gets reference to default value
virtual const T & getDefault () const
 gets reference to default value
virtual ValueSetControlsetDefault (const T &d)
 assigns d to the default value (not to the target, yet); returns *this

Protected Attributes

T * target
 the target that will be set to the default value (def)
def
 the value that will be assigned to target upon a call to activate()


Member Function Documentation

template<class T>
virtual ControlBase* ValueSetControl< T >::activate ( MotionManager::MC_ID  display  )  [inline, virtual]

assigns def to object pointed to by target

Todo:
make the leds flash

Definition at line 22 of file ValueSetControl.h.


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

Tekkotsu v3.0
Generated Fri May 11 20:08:56 2007 by Doxygen 1.4.7