]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/ICommandsUser.h
dcf318546ae4e006d30a1045109837e40f7117dd
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ICommandsUser.h
1 #ifndef __ICOMMANDS_USER__
2 #define __ICOMMANDS_USER__
3
4
5 //------------------------------------------------------------------------------------------------------------
6 // Includes
7 //------------------------------------------------------------------------------------------------------------
8
9 #include <iostream>
10 #include <deque>
11 #include "CommandObject.h"
12
13 class ICommandsUser{
14
15 //------------------------------------------------------------------------------------------------------------
16 // Constructors & Destructors
17 //------------------------------------------------------------------------------------------------------------
18 public:
19    virtual ~ICommandsUser() {};
20
21         
22 //------------------------------------------------------------------------------------------------------------
23 // Methods
24 //------------------------------------------------------------------------------------------------------------
25
26         
27         /*
28         * Executes a command by resending the received parameters to its parent to do the appropiate interpretation and execution.
29         * @param theCommand Is the command to execute
30         * @param fromRegistration Indicates if the execution is directed from the registration, by default comes from the GUI = false.
31         */
32         virtual bool executeCommand(CommandObject * theCommand, bool fromRegistration=false) = 0;
33         
34         /*
35         * Executes a command queue by resending the received parameters to its parent to do the appropiate interpretation and execution.
36         * @param executionQueue Is the command queue to execute
37         * @param fromRegistration Indicates if the execution is directed from the registration, by default comes from the GUI = false.
38         */
39         virtual bool executeCommandsQueue(std::deque<CommandObject *> & executionQueue, bool fromRegistration) = 0;
40
41         
42 };
43 #endif
44