]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/ICommandsUser.h
*** empty log message ***
[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
20         
21 //------------------------------------------------------------------------------------------------------------
22 // Methods
23 //------------------------------------------------------------------------------------------------------------
24
25         
26         /*
27         * Executes a command by resending the received parameters to its parent to do the appropiate interpretation and execution.
28         * @param theCommand Is the command to execute
29         * @param fromRegistration Indicates if the execution is directed from the registration, by default comes from the GUI = false.
30         */
31         virtual bool executeCommand(CommandObject * theCommand, bool fromRegistration=false) = 0;
32         
33         /*
34         * Executes a command queue by resending the received parameters to its parent to do the appropiate interpretation and execution.
35         * @param executionQueue Is the command queue to execute
36         * @param fromRegistration Indicates if the execution is directed from the registration, by default comes from the GUI = false.
37         */
38         virtual bool executeCommandsQueue(std::deque<CommandObject *> & executionQueue, bool fromRegistration) = 0;
39
40         
41 };
42 #endif
43