18 #include <QJsonDocument> 43 name =
new QString(
"");
45 ranges =
new QList<SWGRangeFloat*>();
65 QByteArray array (json.toStdString().c_str());
66 QJsonDocument doc = QJsonDocument::fromJson(array);
67 QJsonObject jsonObject = doc.object();
85 QJsonDocument doc(*obj);
86 QByteArray bytes = doc.toJson();
88 return QString(bytes);
93 QJsonObject* obj =
new QJsonObject();
94 if(
name !=
nullptr && *
name != QString(
"")){
114 QList<SWGRangeFloat*>*
127 bool isObjectUpdated =
false;
129 if(
name !=
nullptr && *
name != QString(
"")){ isObjectUpdated =
true;
break;}
130 if(
ranges->size() > 0){ isObjectUpdated =
true;
break;}
132 return isObjectUpdated;
void setName(QString *name)
QList< SWGRangeFloat * > * ranges
QList< SWGRangeFloat * > * getRanges()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual ~SWGSoapySDRFrequencySetting()
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
virtual bool isSet() override
virtual void fromJsonObject(QJsonObject &json) override
virtual SWGSoapySDRFrequencySetting * fromJson(QString &jsonString) override
void setRanges(QList< SWGRangeFloat *> *ranges)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
SWGSoapySDRFrequencySetting()