v2.0.0
Loading...
Searching...
No Matches
commandpattern.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef COMMANDPATTERN_H
37#define COMMANDPATTERN_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../utils_global.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QSharedPointer>
50#include <QString>
51
52//=============================================================================================================
53// DEFINE NAMESPACE UTILSLIB
54//=============================================================================================================
55
56namespace UTILSLIB
57{
58
59//=============================================================================================================
66{
67public:
68 typedef QSharedPointer<ICommand> SPtr;
69 typedef QSharedPointer<const ICommand> ConstSPtr;
70
71 //=========================================================================================================
75 virtual ~ICommand() {};
76
77 //=========================================================================================================
81 virtual void execute() = 0;
82};
83
84//Invoker
85//--> Use signal/slot
86
87//Receiver
88//--> Use signal/slot
89
90} // Namespace
91
92#endif // COMMANDPATTERN_H
utils library export/import macros.
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Definition buildinfo.h:45
The ICommand interface provides the base class of every command of the command design pattern.
virtual void execute()=0
QSharedPointer< const ICommand > ConstSPtr
QSharedPointer< ICommand > SPtr