18 #include <QJsonDocument> 75 QByteArray array (json.toStdString().c_str());
76 QJsonDocument doc = QJsonDocument::fromJson(array);
77 QJsonObject jsonObject = doc.object();
99 QJsonDocument doc(*obj);
100 QByteArray bytes = doc.toJson();
102 return QString(bytes);
107 QJsonObject* obj =
new QJsonObject();
167 bool isObjectUpdated =
false;
174 return isObjectUpdated;
virtual ~SWGBladeRF2OutputReport()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
SWGFrequencyRange * getFrequencyRange()
virtual SWGBladeRF2OutputReport * fromJson(QString &jsonString) override
bool m_global_gain_range_isSet
virtual void fromJsonObject(QJsonObject &json) override
SWGRange * global_gain_range
SWGRange * getBandwidthRange()
SWGBladeRF2OutputReport()
bool m_frequency_range_isSet
void setFrequencyRange(SWGFrequencyRange *frequency_range)
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
void setGlobalGainRange(SWGRange *global_gain_range)
SWGRange * getGlobalGainRange()
SWGRange * bandwidth_range
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
SWGRange * getSampleRateRange()
SWGRange * sample_rate_range
void setSampleRateRange(SWGRange *sample_rate_range)
virtual QString asJson() override
virtual bool isSet() override
bool m_sample_rate_range_isSet
virtual bool isSet() override
SWGFrequencyRange * frequency_range
void setBandwidthRange(SWGRange *bandwidth_range)
bool m_bandwidth_range_isSet