1 #ifndef __EXECUTABLE_COMMAND__
2 #define __EXECUTABLE_COMMAND__
6 //------------------------------------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------------------------------------
10 #include "CommandObject.h"
12 class ExecutableCommand : public CommandObject{
14 //------------------------------------------------------------------------------------------------------------
15 // Constructors & Destructors
16 //------------------------------------------------------------------------------------------------------------
20 * Creates a command (executable) with the given text
21 * @param aText Is the text to assign to the command
22 * @return Returns the created ExecutableCommand pointer
24 ExecutableCommand(std::string aText );
27 * Destroys the command
29 ~ExecutableCommand( );
30 //------------------------------------------------------------------------------------------------------------
32 //------------------------------------------------------------------------------------------------------------
36 * Gets the text of the command
37 * @return text Is the text of the command
39 std::string getText();
42 * Sets the text of the command
43 * @param theText Is the text of the command
45 void setText(std::string theText);
48 * Includes the command into the given queue for execution
49 * @param executionQueue Is the queue in which is included the command
51 virtual void includeToExecute(std::deque<CommandObject * > & executionQueue);
54 * Counts the command(s)
55 * @return The value of commands that represents this
60 * Method that clears the command
64 //------------------------------------------------------------------------------------------------------------
66 //------------------------------------------------------------------------------------------------------------
69 //------------------------------------------------------------------------------------------------------------
71 //------------------------------------------------------------------------------------------------------------
74 * Represents the text of the command