v2.0.0
Loading...
Searching...
No Matches
src
libraries
com
rt_command
raw_command.cpp
Go to the documentation of this file.
1
//=============================================================================================================
19
20
//=============================================================================================================
21
// Includes
22
//=============================================================================================================
23
24
#include "
raw_command.h
"
25
26
//=============================================================================================================
27
// USED NAMESPACES
28
//=============================================================================================================
29
30
using namespace
COMLIB
;
31
32
//=============================================================================================================
33
// DEFINE MEMBER METHODS
34
//=============================================================================================================
35
36
RawCommand::RawCommand
(QObject *parent)
37
: QObject(parent)
38
, m_bIsJson(false)
39
{
40
}
41
42
//=============================================================================================================
43
44
RawCommand::RawCommand
(
const
QString &p_sCommand,
bool
p_bIsJson, QObject *parent)
45
: QObject(parent)
46
, m_sCommand(p_sCommand)
47
, m_bIsJson(p_bIsJson)
48
{
49
}
50
51
//=============================================================================================================
52
53
RawCommand::RawCommand
(
const
RawCommand
&p_rawCommand)
54
: QObject(p_rawCommand.parent())
55
, m_sCommand(p_rawCommand.m_sCommand)
56
, m_bIsJson(p_rawCommand.m_bIsJson)
57
, m_qListRawParameters(p_rawCommand.m_qListRawParameters)
58
{
59
}
60
61
//=============================================================================================================
62
63
void
RawCommand::execute
()
64
{
65
emit
executed
(m_qListRawParameters);
66
}
67
68
//=============================================================================================================
69
70
RawCommand
&
RawCommand::operator=
(
const
RawCommand
&rhs)
71
{
72
if
(
this
!= &rhs)
// protect against invalid self-assignment
73
{
74
m_sCommand = rhs.m_sCommand;
75
m_bIsJson = rhs.m_bIsJson;
76
m_qListRawParameters = rhs.m_qListRawParameters;
77
}
78
// to support chained assignment operators (a=b=c), always return *this
79
return
*
this
;
80
}
raw_command.h
Untyped intermediate produced by COMLIB::CommandParser before type information is bound to parameters...
COMLIB
Real-time client/server communication primitives for talking to mne_rt_server.
COMLIB::RawCommand::executed
void executed(QList< QString > p_qListParameters)
COMLIB::RawCommand::operator=
RawCommand & operator=(const RawCommand &rhs)
Definition
raw_command.cpp:70
COMLIB::RawCommand::RawCommand
RawCommand(QObject *parent=0)
Definition
raw_command.cpp:36
COMLIB::RawCommand::execute
virtual void execute()
Definition
raw_command.cpp:63
Generated on
for MNE-CPP by
1.16.1