SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
SWGSDRangel::SWGInstanceSummaryResponse Class Reference

#include <SWGInstanceSummaryResponse.h>

+ Inheritance diagram for SWGSDRangel::SWGInstanceSummaryResponse:
+ Collaboration diagram for SWGSDRangel::SWGInstanceSummaryResponse:

Public Member Functions

 SWGInstanceSummaryResponse ()
 
 SWGInstanceSummaryResponse (QString *json)
 
virtual ~SWGInstanceSummaryResponse ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGInstanceSummaryResponsefromJson (QString &jsonString) override
 
QString * getVersion ()
 
void setVersion (QString *version)
 
QString * getQtVersion ()
 
void setQtVersion (QString *qt_version)
 
qint32 getDspRxBits ()
 
void setDspRxBits (qint32 dsp_rx_bits)
 
qint32 getDspTxBits ()
 
void setDspTxBits (qint32 dsp_tx_bits)
 
qint32 getPid ()
 
void setPid (qint32 pid)
 
QString * getAppname ()
 
void setAppname (QString *appname)
 
QString * getArchitecture ()
 
void setArchitecture (QString *architecture)
 
QString * getOs ()
 
void setOs (QString *os)
 
SWGLoggingInfogetLogging ()
 
void setLogging (SWGLoggingInfo *logging)
 
SWGDeviceSetListgetDevicesetlist ()
 
void setDevicesetlist (SWGDeviceSetList *devicesetlist)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

QString * version
 
bool m_version_isSet
 
QString * qt_version
 
bool m_qt_version_isSet
 
qint32 dsp_rx_bits
 
bool m_dsp_rx_bits_isSet
 
qint32 dsp_tx_bits
 
bool m_dsp_tx_bits_isSet
 
qint32 pid
 
bool m_pid_isSet
 
QString * appname
 
bool m_appname_isSet
 
QString * architecture
 
bool m_architecture_isSet
 
QString * os
 
bool m_os_isSet
 
SWGLoggingInfologging
 
bool m_logging_isSet
 
SWGDeviceSetListdevicesetlist
 
bool m_devicesetlist_isSet
 

Detailed Description

Definition at line 34 of file SWGInstanceSummaryResponse.h.

Constructor & Destructor Documentation

◆ SWGInstanceSummaryResponse() [1/2]

SWGSDRangel::SWGInstanceSummaryResponse::SWGInstanceSummaryResponse ( )

Definition at line 30 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, dsp_rx_bits, dsp_tx_bits, logging, m_appname_isSet, m_architecture_isSet, m_devicesetlist_isSet, m_dsp_rx_bits_isSet, m_dsp_tx_bits_isSet, m_logging_isSet, m_os_isSet, m_pid_isSet, m_qt_version_isSet, m_version_isSet, os, pid, qt_version, and version.

30  {
31  version = nullptr;
32  m_version_isSet = false;
33  qt_version = nullptr;
34  m_qt_version_isSet = false;
35  dsp_rx_bits = 0;
36  m_dsp_rx_bits_isSet = false;
37  dsp_tx_bits = 0;
38  m_dsp_tx_bits_isSet = false;
39  pid = 0;
40  m_pid_isSet = false;
41  appname = nullptr;
42  m_appname_isSet = false;
43  architecture = nullptr;
44  m_architecture_isSet = false;
45  os = nullptr;
46  m_os_isSet = false;
47  logging = nullptr;
48  m_logging_isSet = false;
49  devicesetlist = nullptr;
50  m_devicesetlist_isSet = false;
51 }

◆ SWGInstanceSummaryResponse() [2/2]

SWGSDRangel::SWGInstanceSummaryResponse::SWGInstanceSummaryResponse ( QString *  json)

Definition at line 25 of file SWGInstanceSummaryResponse.cpp.

References fromJson(), and init().

25  {
26  init();
27  this->fromJson(*json);
28 }
virtual SWGInstanceSummaryResponse * fromJson(QString &jsonString) override
+ Here is the call graph for this function:

◆ ~SWGInstanceSummaryResponse()

SWGSDRangel::SWGInstanceSummaryResponse::~SWGInstanceSummaryResponse ( )
virtual

Definition at line 53 of file SWGInstanceSummaryResponse.cpp.

References cleanup().

+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGInstanceSummaryResponse::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 143 of file SWGInstanceSummaryResponse.cpp.

References asJsonObject().

Referenced by WebAPIRequestMapper::instanceSummaryService().

144 {
145  QJsonObject* obj = this->asJsonObject();
146 
147  QJsonDocument doc(*obj);
148  QByteArray bytes = doc.toJson();
149  delete obj;
150  return QString(bytes);
151 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ asJsonObject()

QJsonObject * SWGSDRangel::SWGInstanceSummaryResponse::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 154 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, dsp_rx_bits, dsp_tx_bits, SWGSDRangel::SWGDeviceSetList::isSet(), SWGSDRangel::SWGLoggingInfo::isSet(), logging, m_dsp_rx_bits_isSet, m_dsp_tx_bits_isSet, m_pid_isSet, os, pid, qt_version, SWGSDRangel::toJsonValue(), and version.

Referenced by asJson().

154  {
155  QJsonObject* obj = new QJsonObject();
156  if(version != nullptr && *version != QString("")){
157  toJsonValue(QString("version"), version, obj, QString("QString"));
158  }
159  if(qt_version != nullptr && *qt_version != QString("")){
160  toJsonValue(QString("qtVersion"), qt_version, obj, QString("QString"));
161  }
163  obj->insert("dspRxBits", QJsonValue(dsp_rx_bits));
164  }
166  obj->insert("dspTxBits", QJsonValue(dsp_tx_bits));
167  }
168  if(m_pid_isSet){
169  obj->insert("pid", QJsonValue(pid));
170  }
171  if(appname != nullptr && *appname != QString("")){
172  toJsonValue(QString("appname"), appname, obj, QString("QString"));
173  }
174  if(architecture != nullptr && *architecture != QString("")){
175  toJsonValue(QString("architecture"), architecture, obj, QString("QString"));
176  }
177  if(os != nullptr && *os != QString("")){
178  toJsonValue(QString("os"), os, obj, QString("QString"));
179  }
180  if((logging != nullptr) && (logging->isSet())){
181  toJsonValue(QString("logging"), logging, obj, QString("SWGLoggingInfo"));
182  }
183  if((devicesetlist != nullptr) && (devicesetlist->isSet())){
184  toJsonValue(QString("devicesetlist"), devicesetlist, obj, QString("SWGDeviceSetList"));
185  }
186 
187  return obj;
188 }
virtual bool isSet() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
virtual bool isSet() override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGInstanceSummaryResponse::cleanup ( )

Definition at line 82 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, logging, os, qt_version, and version.

Referenced by ~SWGInstanceSummaryResponse().

82  {
83  if(version != nullptr) {
84  delete version;
85  }
86  if(qt_version != nullptr) {
87  delete qt_version;
88  }
89 
90 
91 
92  if(appname != nullptr) {
93  delete appname;
94  }
95  if(architecture != nullptr) {
96  delete architecture;
97  }
98  if(os != nullptr) {
99  delete os;
100  }
101  if(logging != nullptr) {
102  delete logging;
103  }
104  if(devicesetlist != nullptr) {
105  delete devicesetlist;
106  }
107 }
+ Here is the caller graph for this function:

◆ fromJson()

SWGInstanceSummaryResponse * SWGSDRangel::SWGInstanceSummaryResponse::fromJson ( QString &  jsonString)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 110 of file SWGInstanceSummaryResponse.cpp.

References fromJsonObject().

Referenced by SWGInstanceSummaryResponse().

110  {
111  QByteArray array (json.toStdString().c_str());
112  QJsonDocument doc = QJsonDocument::fromJson(array);
113  QJsonObject jsonObject = doc.object();
114  this->fromJsonObject(jsonObject);
115  return this;
116 }
virtual void fromJsonObject(QJsonObject &json) override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromJsonObject()

void SWGSDRangel::SWGInstanceSummaryResponse::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 119 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, dsp_rx_bits, dsp_tx_bits, logging, os, pid, qt_version, SWGSDRangel::setValue(), and version.

Referenced by fromJson().

119  {
120  ::SWGSDRangel::setValue(&version, pJson["version"], "QString", "QString");
121 
122  ::SWGSDRangel::setValue(&qt_version, pJson["qtVersion"], "QString", "QString");
123 
124  ::SWGSDRangel::setValue(&dsp_rx_bits, pJson["dspRxBits"], "qint32", "");
125 
126  ::SWGSDRangel::setValue(&dsp_tx_bits, pJson["dspTxBits"], "qint32", "");
127 
128  ::SWGSDRangel::setValue(&pid, pJson["pid"], "qint32", "");
129 
130  ::SWGSDRangel::setValue(&appname, pJson["appname"], "QString", "QString");
131 
132  ::SWGSDRangel::setValue(&architecture, pJson["architecture"], "QString", "QString");
133 
134  ::SWGSDRangel::setValue(&os, pJson["os"], "QString", "QString");
135 
136  ::SWGSDRangel::setValue(&logging, pJson["logging"], "SWGLoggingInfo", "SWGLoggingInfo");
137 
138  ::SWGSDRangel::setValue(&devicesetlist, pJson["devicesetlist"], "SWGDeviceSetList", "SWGDeviceSetList");
139 
140 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAppname()

QString * SWGSDRangel::SWGInstanceSummaryResponse::getAppname ( )

Definition at line 241 of file SWGInstanceSummaryResponse.cpp.

References appname.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

241  {
242  return appname;
243 }
+ Here is the caller graph for this function:

◆ getArchitecture()

QString * SWGSDRangel::SWGInstanceSummaryResponse::getArchitecture ( )

Definition at line 251 of file SWGInstanceSummaryResponse.cpp.

References architecture.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

251  {
252  return architecture;
253 }
+ Here is the caller graph for this function:

◆ getDevicesetlist()

SWGDeviceSetList * SWGSDRangel::SWGInstanceSummaryResponse::getDevicesetlist ( )

Definition at line 281 of file SWGInstanceSummaryResponse.cpp.

References devicesetlist.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

281  {
282  return devicesetlist;
283 }
+ Here is the caller graph for this function:

◆ getDspRxBits()

qint32 SWGSDRangel::SWGInstanceSummaryResponse::getDspRxBits ( )

Definition at line 211 of file SWGInstanceSummaryResponse.cpp.

References dsp_rx_bits.

◆ getDspTxBits()

qint32 SWGSDRangel::SWGInstanceSummaryResponse::getDspTxBits ( )

Definition at line 221 of file SWGInstanceSummaryResponse.cpp.

References dsp_tx_bits.

◆ getLogging()

SWGLoggingInfo * SWGSDRangel::SWGInstanceSummaryResponse::getLogging ( )

Definition at line 271 of file SWGInstanceSummaryResponse.cpp.

References logging.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

271  {
272  return logging;
273 }
+ Here is the caller graph for this function:

◆ getOs()

QString * SWGSDRangel::SWGInstanceSummaryResponse::getOs ( )

Definition at line 261 of file SWGInstanceSummaryResponse.cpp.

References os.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

261  {
262  return os;
263 }
+ Here is the caller graph for this function:

◆ getPid()

qint32 SWGSDRangel::SWGInstanceSummaryResponse::getPid ( )

Definition at line 231 of file SWGInstanceSummaryResponse.cpp.

References pid.

231  {
232  return pid;
233 }

◆ getQtVersion()

QString * SWGSDRangel::SWGInstanceSummaryResponse::getQtVersion ( )

Definition at line 201 of file SWGInstanceSummaryResponse.cpp.

References qt_version.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

201  {
202  return qt_version;
203 }
+ Here is the caller graph for this function:

◆ getVersion()

QString * SWGSDRangel::SWGInstanceSummaryResponse::getVersion ( )

Definition at line 191 of file SWGInstanceSummaryResponse.cpp.

References version.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

191  {
192  return version;
193 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGInstanceSummaryResponse::init ( )

Definition at line 58 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, dsp_rx_bits, dsp_tx_bits, logging, m_appname_isSet, m_architecture_isSet, m_devicesetlist_isSet, m_dsp_rx_bits_isSet, m_dsp_tx_bits_isSet, m_logging_isSet, m_os_isSet, m_pid_isSet, m_qt_version_isSet, m_version_isSet, os, pid, qt_version, and version.

Referenced by WebAPIAdapterGUI::instanceSummary(), WebAPIAdapterSrv::instanceSummary(), and SWGInstanceSummaryResponse().

58  {
59  version = new QString("");
60  m_version_isSet = false;
61  qt_version = new QString("");
62  m_qt_version_isSet = false;
63  dsp_rx_bits = 0;
64  m_dsp_rx_bits_isSet = false;
65  dsp_tx_bits = 0;
66  m_dsp_tx_bits_isSet = false;
67  pid = 0;
68  m_pid_isSet = false;
69  appname = new QString("");
70  m_appname_isSet = false;
71  architecture = new QString("");
72  m_architecture_isSet = false;
73  os = new QString("");
74  m_os_isSet = false;
75  logging = new SWGLoggingInfo();
76  m_logging_isSet = false;
77  devicesetlist = new SWGDeviceSetList();
78  m_devicesetlist_isSet = false;
79 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGInstanceSummaryResponse::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 292 of file SWGInstanceSummaryResponse.cpp.

References appname, architecture, devicesetlist, SWGSDRangel::SWGDeviceSetList::isSet(), SWGSDRangel::SWGLoggingInfo::isSet(), logging, m_dsp_rx_bits_isSet, m_dsp_tx_bits_isSet, m_pid_isSet, os, qt_version, and version.

292  {
293  bool isObjectUpdated = false;
294  do{
295  if(version != nullptr && *version != QString("")){ isObjectUpdated = true; break;}
296  if(qt_version != nullptr && *qt_version != QString("")){ isObjectUpdated = true; break;}
297  if(m_dsp_rx_bits_isSet){ isObjectUpdated = true; break;}
298  if(m_dsp_tx_bits_isSet){ isObjectUpdated = true; break;}
299  if(m_pid_isSet){ isObjectUpdated = true; break;}
300  if(appname != nullptr && *appname != QString("")){ isObjectUpdated = true; break;}
301  if(architecture != nullptr && *architecture != QString("")){ isObjectUpdated = true; break;}
302  if(os != nullptr && *os != QString("")){ isObjectUpdated = true; break;}
303  if(logging != nullptr && logging->isSet()){ isObjectUpdated = true; break;}
304  if(devicesetlist != nullptr && devicesetlist->isSet()){ isObjectUpdated = true; break;}
305  }while(false);
306  return isObjectUpdated;
307 }
virtual bool isSet() override
virtual bool isSet() override
+ Here is the call graph for this function:

◆ setAppname()

void SWGSDRangel::SWGInstanceSummaryResponse::setAppname ( QString *  appname)

◆ setArchitecture()

void SWGSDRangel::SWGInstanceSummaryResponse::setArchitecture ( QString *  architecture)

◆ setDevicesetlist()

void SWGSDRangel::SWGInstanceSummaryResponse::setDevicesetlist ( SWGDeviceSetList devicesetlist)

◆ setDspRxBits()

void SWGSDRangel::SWGInstanceSummaryResponse::setDspRxBits ( qint32  dsp_rx_bits)

Definition at line 215 of file SWGInstanceSummaryResponse.cpp.

References dsp_rx_bits, and m_dsp_rx_bits_isSet.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

+ Here is the caller graph for this function:

◆ setDspTxBits()

void SWGSDRangel::SWGInstanceSummaryResponse::setDspTxBits ( qint32  dsp_tx_bits)

Definition at line 225 of file SWGInstanceSummaryResponse.cpp.

References dsp_tx_bits, and m_dsp_tx_bits_isSet.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

+ Here is the caller graph for this function:

◆ setLogging()

void SWGSDRangel::SWGInstanceSummaryResponse::setLogging ( SWGLoggingInfo logging)

Definition at line 275 of file SWGInstanceSummaryResponse.cpp.

References logging, and m_logging_isSet.

◆ setOs()

void SWGSDRangel::SWGInstanceSummaryResponse::setOs ( QString *  os)

Definition at line 265 of file SWGInstanceSummaryResponse.cpp.

References m_os_isSet, and os.

◆ setPid()

void SWGSDRangel::SWGInstanceSummaryResponse::setPid ( qint32  pid)

Definition at line 235 of file SWGInstanceSummaryResponse.cpp.

References m_pid_isSet, and pid.

Referenced by WebAPIAdapterGUI::instanceSummary(), and WebAPIAdapterSrv::instanceSummary().

+ Here is the caller graph for this function:

◆ setQtVersion()

void SWGSDRangel::SWGInstanceSummaryResponse::setQtVersion ( QString *  qt_version)

◆ setVersion()

void SWGSDRangel::SWGInstanceSummaryResponse::setVersion ( QString *  version)

Member Data Documentation

◆ appname

QString* SWGSDRangel::SWGInstanceSummaryResponse::appname
private

◆ architecture

QString* SWGSDRangel::SWGInstanceSummaryResponse::architecture
private

◆ devicesetlist

SWGDeviceSetList* SWGSDRangel::SWGInstanceSummaryResponse::devicesetlist
private

◆ dsp_rx_bits

qint32 SWGSDRangel::SWGInstanceSummaryResponse::dsp_rx_bits
private

◆ dsp_tx_bits

qint32 SWGSDRangel::SWGInstanceSummaryResponse::dsp_tx_bits
private

◆ logging

SWGLoggingInfo* SWGSDRangel::SWGInstanceSummaryResponse::logging
private

◆ m_appname_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_appname_isSet
private

Definition at line 97 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setAppname(), and SWGInstanceSummaryResponse().

◆ m_architecture_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_architecture_isSet
private

Definition at line 100 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setArchitecture(), and SWGInstanceSummaryResponse().

◆ m_devicesetlist_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_devicesetlist_isSet
private

◆ m_dsp_rx_bits_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_dsp_rx_bits_isSet
private

◆ m_dsp_tx_bits_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_dsp_tx_bits_isSet
private

◆ m_logging_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_logging_isSet
private

Definition at line 106 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setLogging(), and SWGInstanceSummaryResponse().

◆ m_os_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_os_isSet
private

Definition at line 103 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setOs(), and SWGInstanceSummaryResponse().

◆ m_pid_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_pid_isSet
private

◆ m_qt_version_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_qt_version_isSet
private

Definition at line 85 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setQtVersion(), and SWGInstanceSummaryResponse().

◆ m_version_isSet

bool SWGSDRangel::SWGInstanceSummaryResponse::m_version_isSet
private

Definition at line 82 of file SWGInstanceSummaryResponse.h.

Referenced by init(), setVersion(), and SWGInstanceSummaryResponse().

◆ os

QString* SWGSDRangel::SWGInstanceSummaryResponse::os
private

◆ pid

qint32 SWGSDRangel::SWGInstanceSummaryResponse::pid
private

◆ qt_version

QString* SWGSDRangel::SWGInstanceSummaryResponse::qt_version
private

◆ version

QString* SWGSDRangel::SWGInstanceSummaryResponse::version
private

The documentation for this class was generated from the following files: