CommandFactory.h

Go to the documentation of this file.
00001 #ifndef _COMMANDFACTORY_HEADER
00002 #define _COMMANDFACTORY_HEADER
00003 
00004 
00005 #include "Command.h"
00006 #include <string>
00007 
00008 
00009 namespace ot
00010 {
00011 
00012 
00013 class SpeechControlSource;
00014 
00015 
00016 /*const std::string voiceCmds[] =
00017 {
00018         "listen", "quit", "exit", "stop", "again", "go on", "undo", "redo", "reset", 
00019         "up", "move up", "continuously up", "continuously move up", 
00020         "down", "move down", "continuously down", "continuously move down", 
00021         "right", "move right", "continuously right", "continuously move right", 
00022         "left", "move left", "continuously left", "continuously move left", 
00023         "forward", "move forward", "continuously forward", "continuously move forward", 
00024         "backward", "move backward", "continuously backward", "continuously move backward", 
00025         "axial", "sagittal", "coronal", 
00026         "rotate right", "rotate right fast", "continuously rotate right", "continuously rotate right fast", 
00027         "rotate left", "rotate left fast", "continuously rotate left", "continuously rotate left fast", 
00028         "roll clockwise", "roll clockwise fast", "continuously roll clockwise", "continuously roll clockwise fast", 
00029         "roll counterclockwise", "roll counterclockwise fast", "continuously roll counterclockwise", "continuously roll counterclockwise fast", 
00030         "tild up", "tild up fast", "continuously tild up", "continuously tild up fast", 
00031         "tild down", "tild down fast", "continuously tild down", "continuously tild down fast", 
00032         "save one", "save two", "save three", "save four", "save five", 
00033         "restore one", "restore two", "restore three", "restore four", "restore five", 
00034         "scale up", "scale down"
00035 };*/
00036 
00037 
00038 // class *CommandFactory*
00039 // *******************************************************************************************
00040 // - implements the factory pattern to create command according to given command name
00041 // - defines constant array of all available command names
00042 
00043 class CommandFactory
00044 {
00045 public:
00046         Command*        createCommand(std::string cmdName, SpeechControlSource &parentSrc);
00047 };
00048 
00049 
00050 } // namespace ot
00051 
00052 
00053 #endif

Generated on Wed Feb 28 15:18:48 2007 for NaviTrack by  doxygen 1.4.6