MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
commandparser.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef COMMANDPARSER_H
38#define COMMANDPARSER_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../communication_global.h"
45#include "rawcommand.h"
46#include "command.h"
47
49
50//=============================================================================================================
51// QT INCLUDES
52//=============================================================================================================
53
54#include <QObject>
55#include <QVector>
56#include <QMultiMap>
57
58//=============================================================================================================
59// DEFINE NAMESPACE COMMUNICATIONLIB
60//=============================================================================================================
61
62namespace COMMUNICATIONLIB
63{
64
66{
67 Q_OBJECT
68
69public:
70
71 //=========================================================================================================
77 explicit CommandParser(QObject *parent = 0);
78
79 //=========================================================================================================
87 bool exists(const QString& p_sCommand);
88
89 //=========================================================================================================
96 bool parse(const QString &p_sInput, QStringList &p_qListCommandsParsed);
97
98 //=========================================================================================================
104 inline RawCommand& getRawCommand();
105
106signals:
107 //=========================================================================================================
114 void response(QString p_sResponse, Command p_command);
115
116private:
117 RawCommand m_rawCommand;
118};
119
120//=============================================================================================================
121// INLINE DEFINITIONS
122//=============================================================================================================
123
125{
126 return m_rawCommand;
127}
128} // NAMESPACE
129
130#endif // COMMANDPARSER_H
Contains declarations of the observer design pattern: Subject class and IObserver interface.
#define COMMUNICATIONSHARED_EXPORT
Declaration of the Command Class.
Declaration of the RawCommand Class.
void response(QString p_sResponse, Command p_command)
The Subject class provides the base class of every subject of the observer design pattern.