18 #include <QJsonDocument> 43 name =
new QString(
"");
54 if(
range !=
nullptr) {
61 QByteArray array (json.toStdString().c_str());
62 QJsonDocument doc = QJsonDocument::fromJson(array);
63 QJsonObject jsonObject = doc.object();
81 QJsonDocument doc(*obj);
82 QByteArray bytes = doc.toJson();
84 return QString(bytes);
89 QJsonObject* obj =
new QJsonObject();
90 if(
name !=
nullptr && *
name != QString(
"")){
123 bool isObjectUpdated =
false;
125 if(
name !=
nullptr && *
name != QString(
"")){ isObjectUpdated =
true;
break;}
126 if(
range !=
nullptr &&
range->
isSet()){ isObjectUpdated =
true;
break;}
128 return isObjectUpdated;
virtual SWGSoapySDRGainSetting * fromJson(QString &jsonString) override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual bool isSet() override
void setRange(SWGRangeFloat *range)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual ~SWGSoapySDRGainSetting()
void setName(QString *name)
SWGRangeFloat * getRange()
virtual QString asJson() override
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
virtual QJsonObject * asJsonObject() override