v2.0.0
Loading...
Searching...
No Matches
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
30using namespace COMLIB;
31
32//=============================================================================================================
33// DEFINE MEMBER METHODS
34//=============================================================================================================
35
36RawCommand::RawCommand(QObject *parent)
37: QObject(parent)
38, m_bIsJson(false)
39{
40}
41
42//=============================================================================================================
43
44RawCommand::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
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
64{
65 emit executed(m_qListRawParameters);
66}
67
68//=============================================================================================================
69
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}
Untyped intermediate produced by COMLIB::CommandParser before type information is bound to parameters...
Real-time client/server communication primitives for talking to mne_rt_server.
void executed(QList< QString > p_qListParameters)
RawCommand & operator=(const RawCommand &rhs)
RawCommand(QObject *parent=0)
virtual void execute()