18 #include <QJsonDocument> 111 QByteArray array (json.toStdString().c_str());
112 QJsonDocument doc = QJsonDocument::fromJson(array);
113 QJsonObject jsonObject = doc.object();
147 QJsonDocument doc(*obj);
148 QByteArray bytes = doc.toJson();
150 return QString(bytes);
155 QJsonObject* obj =
new QJsonObject();
169 obj->insert(
"pid", QJsonValue(
pid));
177 if(
os !=
nullptr && *
os != QString(
"")){
293 bool isObjectUpdated =
false;
295 if(
version !=
nullptr && *
version != QString(
"")){ isObjectUpdated =
true;
break;}
300 if(
appname !=
nullptr && *
appname != QString(
"")){ isObjectUpdated =
true;
break;}
302 if(
os !=
nullptr && *
os != QString(
"")){ isObjectUpdated =
true;
break;}
306 return isObjectUpdated;
void setAppname(QString *appname)
virtual bool isSet() override
void setVersion(QString *version)
SWGDeviceSetList * devicesetlist
void setDspTxBits(qint32 dsp_tx_bits)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setDspRxBits(qint32 dsp_rx_bits)
void setLogging(SWGLoggingInfo *logging)
SWGDeviceSetList * getDevicesetlist()
void setArchitecture(QString *architecture)
SWGLoggingInfo * getLogging()
virtual SWGInstanceSummaryResponse * fromJson(QString &jsonString) override
virtual ~SWGInstanceSummaryResponse()
virtual void fromJsonObject(QJsonObject &json) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_devicesetlist_isSet
virtual bool isSet() override
SWGInstanceSummaryResponse()
virtual bool isSet() override
bool m_architecture_isSet
virtual QString asJson() override
QString * getArchitecture()
void setQtVersion(QString *qt_version)
void setDevicesetlist(SWGDeviceSetList *devicesetlist)
virtual QJsonObject * asJsonObject() override