ot::Command Class Reference

#include <Command.h>

Inheritance diagram for ot::Command:

Inheritance graph
[legend]
Collaboration diagram for ot::Command:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Command (TtsString &name_, TtsString &cmdclass_, SpeechControlSource &parentSrc_, bool undoable_=false, bool extendable_=false)
virtual bool redo ()
virtual bool undo ()
virtual bool combine (Command &cmd)
virtual bool extend ()
bool isCombinable (Command &cmd)
bool isExtendable ()
bool isUndoable ()
TtsStringgetName ()
TtsStringgetCmdClass ()
TtsStringgetFailureMsg ()
TtsStringgetSuccessMsg ()

Static Public Member Functions

static CommandcreateCommand (std::string cmdName, SpeechControlSource &parentSrc)

Protected Member Functions

void setEvent (Event &newEvent)
EventgetEvent ()
CommandgetLastCmd ()
CommandgetUndoCmd ()
CommandgetRedoCmd ()

Protected Attributes

SpeechControlSourceparentSrc
TtsString name
TtsString cmdclass
TtsString failureMsg
TtsString successMsg
bool extendable
bool undoable

Static Protected Attributes

static double scale

Constructor & Destructor Documentation

ot::Command::Command TtsString name_,
TtsString cmdclass_,
SpeechControlSource parentSrc_,
bool  undoable_ = false,
bool  extendable_ = false
 


Member Function Documentation

virtual bool ot::Command::combine Command cmd  )  [inline, virtual]
 

Reimplemented in ot::CmdUpMovement, ot::CmdDownMovement, ot::CmdRightMovement, ot::CmdLeftMovement, ot::CmdForwardMovement, ot::CmdBackwardMovement, and ot::CmdRotation.

static Command* ot::Command::createCommand std::string  cmdName,
SpeechControlSource parentSrc
[static]
 

virtual bool ot::Command::extend  )  [inline, virtual]
 

Reimplemented in ot::CmdUpMovement, ot::CmdDownMovement, ot::CmdRightMovement, ot::CmdLeftMovement, ot::CmdForwardMovement, ot::CmdBackwardMovement, ot::CmdRightRotation, ot::CmdLeftRotation, ot::CmdClockwiseRolling, ot::CmdCounterClockwiseRolling, ot::CmdTildingUp, and ot::CmdTildingDown.

TtsString& ot::Command::getCmdClass  )  [inline]
 

Event& ot::Command::getEvent  )  [protected]
 

TtsString& ot::Command::getFailureMsg  )  [inline]
 

Command* ot::Command::getLastCmd  )  [protected]
 

TtsString& ot::Command::getName  )  [inline]
 

Command* ot::Command::getRedoCmd  )  [protected]
 

TtsString& ot::Command::getSuccessMsg  )  [inline]
 

Command* ot::Command::getUndoCmd  )  [protected]
 

bool ot::Command::isCombinable Command cmd  )  [inline]
 

bool ot::Command::isExtendable  )  [inline]
 

bool ot::Command::isUndoable  )  [inline]
 

virtual bool ot::Command::redo  )  [inline, virtual]
 

Reimplemented in ot::CmdUpMovement, ot::CmdDownMovement, ot::CmdRightMovement, ot::CmdLeftMovement, ot::CmdForwardMovement, ot::CmdBackwardMovement, ot::CmdAxial, ot::CmdSagittal, ot::CmdCoronal, ot::CmdReset, ot::CmdRightRotation, ot::CmdLeftRotation, ot::CmdClockwiseRolling, ot::CmdCounterClockwiseRolling, ot::CmdTildingUp, ot::CmdTildingDown, ot::CmdSaveEvent, ot::CmdRestoreEvent, ot::CmdScaleUp, ot::CmdScaleDown, ot::CmdGoOn, ot::CmdStop, ot::CmdAgain, ot::CmdQuit, ot::CmdUndo, and ot::CmdRedo.

void ot::Command::setEvent Event newEvent  )  [protected]
 

virtual bool ot::Command::undo  )  [inline, virtual]
 

Reimplemented in ot::CmdUpMovement, ot::CmdDownMovement, ot::CmdRightMovement, ot::CmdLeftMovement, ot::CmdForwardMovement, ot::CmdBackwardMovement, ot::CmdAxial, ot::CmdSagittal, ot::CmdCoronal, ot::CmdReset, ot::CmdRightRotation, ot::CmdLeftRotation, ot::CmdClockwiseRolling, ot::CmdCounterClockwiseRolling, ot::CmdTildingUp, ot::CmdTildingDown, ot::CmdRestoreEvent, ot::CmdScaleUp, and ot::CmdScaleDown.


Member Data Documentation

TtsString ot::Command::cmdclass [protected]
 

bool ot::Command::extendable [protected]
 

TtsString ot::Command::failureMsg [protected]
 

TtsString ot::Command::name [protected]
 

SpeechControlSource& ot::Command::parentSrc [protected]
 

double ot::Command::scale [static, protected]
 

TtsString ot::Command::successMsg [protected]
 

bool ot::Command::undoable [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:29:21 2007 for NaviTrack by  doxygen 1.4.6