2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "ExecutableCommand.h"
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file ExecutableCommand.cxx */
12 //------------------------------------------------------------------------------------------------------------
13 // Constructors & Destructors
14 //------------------------------------------------------------------------------------------------------------
17 * Creates a command with the given text
18 * @param aText Is the text to assign to the command
19 * @return Returns the created ExecutableCommand pointer
21 ExecutableCommand :: ExecutableCommand(std::string aText)
24 std::cout<<"execComm created "<< aText.data()<<std::endl;//SIL
28 * Destroys the command
30 ExecutableCommand :: ~ExecutableCommand()
37 //------------------------------------------------------------------------------------------------------------
39 //------------------------------------------------------------------------------------------------------------
42 * Gets the text of the command
43 * @return text Is the text of the command
45 std::string ExecutableCommand :: getText()
51 * Sets the text of the command
52 * @param theText Is the text of the command
54 void ExecutableCommand :: setText(std::string theText)
60 * Includes the command into the given queue for execution
61 * @param executionQueue Is the queue in which is included the command
63 void ExecutableCommand :: includeToExecute(std::deque<CommandObject *> & executionQueue)
65 executionQueue.push_back( this );
70 * Virtual method implementation that returns 1 as the ExecutableCommand is just one command effective
71 * @return The value of commands that represents this
73 int ExecutableCommand :: count()
79 * Method that clears the command
81 void ExecutableCommand :: clear()