1 #ifndef __COMPOSED_COMMAND__
2 #define __COMPOSED_COMMAND__
5 //------------------------------------------------------------------------------------------------------------
7 //------------------------------------------------------------------------------------------------------------
10 #include "CommandObject.h"
14 class ExecutableCommand;*/
16 class ComposedCommand : public CommandObject{
18 //------------------------------------------------------------------------------------------------------------
19 // Constructors & Destructors
20 //------------------------------------------------------------------------------------------------------------
26 //------------------------------------------------------------------------------------------------------------
28 //------------------------------------------------------------------------------------------------------------
31 * Adds a command to the list of command
32 * @param nwCommand Is the new command to include
34 void addCommand(CommandObject * nwCommand);
37 * Includes the command into the given queue for execution
38 * @param executionQueue Is the queue in which is included the command
40 virtual void includeToExecute(std::deque<CommandObject *> &executionQueue);
43 * Counts the command(s)
44 * @return The value of commands that represents this
49 * Method that clears the command
53 //------------------------------------------------------------------------------------------------------------
55 //------------------------------------------------------------------------------------------------------------
58 //------------------------------------------------------------------------------------------------------------
60 //------------------------------------------------------------------------------------------------------------
63 * Represents the internal commands
65 std::deque< CommandObject *> internalCommands;