MNE-CPP
0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
src
libraries
communication
rtCommand
rawcommand.cpp
Go to the documentation of this file.
1
//=============================================================================================================
37
//=============================================================================================================
38
// Includes
39
//=============================================================================================================
40
41
#include "
rawcommand.h
"
42
43
//=============================================================================================================
44
// USED NAMESPACES
45
//=============================================================================================================
46
47
using namespace
COMMUNICATIONLIB;
48
49
//=============================================================================================================
50
// DEFINE MEMBER METHODS
51
//=============================================================================================================
52
53
RawCommand::RawCommand
(QObject *parent)
54
: QObject(parent)
55
, m_bIsJson(false)
56
{
57
}
58
59
//=============================================================================================================
60
61
RawCommand::RawCommand
(
const
QString &p_sCommand,
bool
p_bIsJson, QObject *parent)
62
: QObject(parent)
63
, m_sCommand(p_sCommand)
64
, m_bIsJson(p_bIsJson)
65
{
66
}
67
68
//=============================================================================================================
69
70
RawCommand::RawCommand
(
const
RawCommand
&p_rawCommand)
71
: QObject(p_rawCommand.parent())
72
, m_sCommand(p_rawCommand.m_sCommand)
73
, m_bIsJson(p_rawCommand.m_bIsJson)
74
, m_qListRawParameters(p_rawCommand.m_qListRawParameters)
75
{
76
}
77
78
//=============================================================================================================
79
80
void
RawCommand::execute
()
81
{
82
emit
executed
(m_qListRawParameters);
83
}
84
85
//=============================================================================================================
86
87
RawCommand
&
RawCommand::operator=
(
const
RawCommand
&rhs)
88
{
89
if
(
this
!= &rhs)
// protect against invalid self-assignment
90
{
91
m_sCommand = rhs.m_sCommand;
92
m_bIsJson = rhs.m_bIsJson;
93
m_qListRawParameters = rhs.m_qListRawParameters;
94
}
95
// to support chained assignment operators (a=b=c), always return *this
96
return
*
this
;
97
}
rawcommand.h
Declaration of the RawCommand Class.
COMMUNICATIONLIB::RawCommand
RawCommand.
Definition
rawcommand.h:70
COMMUNICATIONLIB::RawCommand::operator=
RawCommand & operator=(const RawCommand &rhs)
Definition
rawcommand.cpp:87
COMMUNICATIONLIB::RawCommand::RawCommand
RawCommand(QObject *parent=0)
Definition
rawcommand.cpp:53
COMMUNICATIONLIB::RawCommand::executed
void executed(QList< QString > p_qListParameters)
COMMUNICATIONLIB::RawCommand::execute
virtual void execute()
Definition
rawcommand.cpp:80
Generated on Sat Feb 14 2026 16:30:23 for MNE-CPP by
1.9.8