18 #include <QJsonDocument> 41 gains =
new QList<SWGGain*>();
47 if(
gains !=
nullptr) {
58 QByteArray array (json.toStdString().c_str());
59 QJsonDocument doc = QJsonDocument::fromJson(array);
60 QJsonObject jsonObject = doc.object();
76 QJsonDocument doc(*obj);
77 QByteArray bytes = doc.toJson();
79 return QString(bytes);
84 QJsonObject* obj =
new QJsonObject();
85 if(
gains->size() > 0){
105 bool isObjectUpdated =
false;
107 if(
gains->size() > 0){ isObjectUpdated =
true;
break;}
109 return isObjectUpdated;
QList< SWGGain * > * getGains()
virtual bool isSet() override
virtual ~SWGRtlSdrReport()
QList< SWGGain * > * gains
virtual QJsonObject * asJsonObject() override
virtual SWGRtlSdrReport * fromJson(QString &jsonString) override
void setGains(QList< SWGGain *> *gains)
virtual void fromJsonObject(QJsonObject &json) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual QString asJson() override