18 #include <QJsonDocument> 114 QByteArray array (json.toStdString().c_str());
115 QJsonDocument doc = QJsonDocument::fromJson(array);
116 QJsonObject jsonObject = doc.object();
156 QJsonDocument doc(*obj);
157 QByteArray bytes = doc.toJson();
159 return QString(bytes);
164 QJsonObject* obj =
new QJsonObject();
172 obj->insert(
"vga1", QJsonValue(
vga1));
175 obj->insert(
"vga2", QJsonValue(
vga2));
178 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
181 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
184 obj->insert(
"xb200", QJsonValue(
xb200));
187 obj->insert(
"xb200Path", QJsonValue(
xb200_path));
341 bool isObjectUpdated =
false;
357 return isObjectUpdated;
bool m_reverse_api_address_isSet
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_xb200_filter_isSet
bool m_dev_sample_rate_isSet
virtual ~SWGBladeRF1OutputSettings()
SWGBladeRF1OutputSettings()
qint32 getReverseApiDeviceIndex()
QString * reverse_api_address
qint32 getUseReverseApi()
virtual SWGBladeRF1OutputSettings * fromJson(QString &jsonString) override
void setReverseApiPort(qint32 reverse_api_port)
void setReverseApiAddress(QString *reverse_api_address)
qint32 getDevSampleRate()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_reverse_api_port_isSet
void setBandwidth(qint32 bandwidth)
void setUseReverseApi(qint32 use_reverse_api)
void setXb200(qint32 xb200)
void setVga1(qint32 vga1)
void setVga2(qint32 vga2)
bool m_reverse_api_device_index_isSet
QString * getReverseApiAddress()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual bool isSet() override
void setXb200Path(qint32 xb200_path)
void setCenterFrequency(qint64 center_frequency)
virtual QJsonObject * asJsonObject() override
void setLog2Interp(qint32 log2_interp)
virtual QString asJson() override
virtual void fromJsonObject(QJsonObject &json) override
void setDevSampleRate(qint32 dev_sample_rate)
bool m_use_reverse_api_isSet
qint32 reverse_api_device_index
void setXb200Filter(qint32 xb200_filter)
qint32 getReverseApiPort()
qint64 getCenterFrequency()
bool m_center_frequency_isSet