MNE-CPP
0.1.9
A Framework for Electrophysiology
src
libraries
communication
rtCommand
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
48
#include <
utils/generics/observerpattern.h
>
49
50
//=============================================================================================================
51
// QT INCLUDES
52
//=============================================================================================================
53
54
#include <QObject>
55
#include <QVector>
56
#include <QMultiMap>
57
58
//=============================================================================================================
59
// DEFINE NAMESPACE COMMUNICATIONLIB
60
//=============================================================================================================
61
62
namespace
COMMUNICATIONLIB
63
{
64
65
class
COMMUNICATIONSHARED_EXPORT
CommandParser
:
public
QObject,
public
UTILSLIB::Subject
66
{
67
Q_OBJECT
68
69
public
:
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
106
signals:
107
//=========================================================================================================
114
void
response(QString p_sResponse,
Command
p_command);
115
116
private
:
117
RawCommand
m_rawCommand;
118
};
119
120
//=============================================================================================================
121
// INLINE DEFINITIONS
122
//=============================================================================================================
123
124
RawCommand
&
CommandParser::getRawCommand
()
125
{
126
return
m_rawCommand;
127
}
128
}
// NAMESPACE
129
130
#endif // COMMANDPARSER_H
COMMUNICATIONLIB::CommandParser::getRawCommand
RawCommand & getRawCommand()
Definition:
commandparser.h:124
command.h
Declaration of the Command Class.
COMMUNICATIONLIB::RawCommand
RawCommand.
Definition:
rawcommand.h:69
COMMUNICATIONSHARED_EXPORT
#define COMMUNICATIONSHARED_EXPORT
Definition:
communication_global.h:56
rawcommand.h
Declaration of the RawCommand Class.
UTILSLIB::Subject
The Subject class provides the base class of every subject of the observer design pattern.
Definition:
observerpattern.h:99
COMMUNICATIONLIB::Command
Command.
Definition:
command.h:77
COMMUNICATIONLIB::CommandParser
Definition:
commandparser.h:65
observerpattern.h
Contains declarations of the observer design pattern: Subject class and IObserver interface.
Generated on Wed Aug 9 2023 17:55:40 for MNE-CPP by
1.8.17