18 #include <QJsonDocument> 70 QByteArray array (json.toStdString().c_str());
71 QJsonDocument doc = QJsonDocument::fromJson(array);
72 QJsonObject jsonObject = doc.object();
92 QJsonDocument doc(*obj);
93 QByteArray bytes = doc.toJson();
95 return QString(bytes);
100 QJsonObject* obj =
new QJsonObject();
147 bool isObjectUpdated =
false;
151 if(
channels->size() > 0){ isObjectUpdated =
true;
break;}
153 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
SWGSamplingDevice * sampling_device
bool m_channelcount_isSet
virtual bool isSet() override
virtual QString asJson() override
virtual SWGDeviceSet * fromJson(QString &jsonString) override
QList< SWGChannel * > * getChannels()
SWGSamplingDevice * getSamplingDevice()
virtual void fromJsonObject(QJsonObject &json) override
virtual QJsonObject * asJsonObject() override
void setChannelcount(qint32 channelcount)
bool m_sampling_device_isSet
void setSamplingDevice(SWGSamplingDevice *sampling_device)
void setChannels(QList< SWGChannel *> *channels)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
QList< SWGChannel * > * channels
virtual bool isSet() override