MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
commandpattern.h
Go to the documentation of this file.
1//=============================================================================================================
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;
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
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