18 #include <QJsonDocument> 132 QByteArray array (json.toStdString().c_str());
133 QJsonDocument doc = QJsonDocument::fromJson(array);
134 QJsonObject jsonObject = doc.object();
182 QJsonDocument doc(*obj);
183 QByteArray bytes = doc.toJson();
185 return QString(bytes);
190 QJsonObject* obj =
new QJsonObject();
201 obj->insert(
"sampleRate", QJsonValue(
sample_rate));
204 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
207 obj->insert(
"fcPos", QJsonValue(
fc_pos));
219 obj->insert(
"modulation", QJsonValue(
modulation));
231 obj->insert(
"dcFactor", QJsonValue(
dc_factor));
234 obj->insert(
"iFactor", QJsonValue(
i_factor));
237 obj->insert(
"qFactor", QJsonValue(
q_factor));
419 bool isObjectUpdated =
false;
439 return isObjectUpdated;
qint32 getAutoCorrOptions()
void setAmModulation(qint32 am_modulation)
qint32 getFrequencyShift()
bool m_fm_deviation_isSet
qint32 getModulationTone()
void setAmplitudeBits(qint32 amplitude_bits)
bool m_center_frequency_isSet
void setIFactor(float i_factor)
bool m_am_modulation_isSet
void setFmDeviation(qint32 fm_deviation)
virtual SWGTestMiStreamSettings * fromJson(QString &jsonString) override
virtual ~SWGTestMiStreamSettings()
bool m_phase_imbalance_isSet
void setCenterFrequency(qint32 center_frequency)
qint32 getAmplitudeBits()
bool m_modulation_tone_isSet
void setQFactor(float q_factor)
qint32 getSampleSizeIndex()
virtual bool isSet() override
void setPhaseImbalance(float phase_imbalance)
bool m_auto_corr_options_isSet
bool m_stream_index_isSet
void setSampleSizeIndex(qint32 sample_size_index)
void setModulation(qint32 modulation)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setFcPos(qint32 fc_pos)
void setFrequencyShift(qint32 frequency_shift)
virtual void fromJsonObject(QJsonObject &json) override
void setModulationTone(qint32 modulation_tone)
void setStreamIndex(qint32 stream_index)
bool m_amplitude_bits_isSet
virtual QJsonObject * asJsonObject() override
bool m_sample_size_index_isSet
bool m_frequency_shift_isSet
void setSampleRate(qint32 sample_rate)
virtual QString asJson() override
float getPhaseImbalance()
SWGTestMiStreamSettings()
void setAutoCorrOptions(qint32 auto_corr_options)
void setDcFactor(float dc_factor)
qint32 getCenterFrequency()
void setLog2Decim(qint32 log2_decim)