18 #include <QJsonDocument> 107 QByteArray array (json.toStdString().c_str());
108 QJsonDocument doc = QJsonDocument::fromJson(array);
109 QJsonObject jsonObject = doc.object();
147 QJsonDocument doc(*obj);
148 QByteArray bytes = doc.toJson();
150 return QString(bytes);
155 QJsonObject* obj =
new QJsonObject();
157 obj->insert(
"success", QJsonValue(
success));
163 obj->insert(
"fifoSize", QJsonValue(
fifo_size));
166 obj->insert(
"fifoFill", QJsonValue(
fifo_fill));
178 obj->insert(
"linkRate", QJsonValue(
link_rate));
184 obj->insert(
"temperature", QJsonValue(
temperature));
187 obj->insert(
"gpioDir", QJsonValue(
gpio_dir));
190 obj->insert(
"gpioPins", QJsonValue(
gpio_pins));
319 bool isObjectUpdated =
false;
334 return isObjectUpdated;
void setStreamActive(qint32 stream_active)
void setDroppedPacketsCount(qint32 dropped_packets_count)
virtual bool isSet() override
void setTemperature(float temperature)
void setUnderrunCount(qint32 underrun_count)
qint32 dropped_packets_count
bool m_underrun_count_isSet
void setGpioDir(qint32 gpio_dir)
bool m_hw_timestamp_isSet
virtual void fromJsonObject(QJsonObject &json) override
qint32 getUnderrunCount()
bool m_overrun_count_isSet
void setFifoSize(qint32 fifo_size)
void setLinkRate(float link_rate)
bool m_stream_active_isSet
bool m_dropped_packets_count_isSet
void setHwTimestamp(qint32 hw_timestamp)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual SWGLimeSdrOutputReport * fromJson(QString &jsonString) override
void setSuccess(qint32 success)
virtual ~SWGLimeSdrOutputReport()
virtual QString asJson() override
virtual QJsonObject * asJsonObject() override
void setGpioPins(qint32 gpio_pins)
void setFifoFill(qint32 fifo_fill)
qint32 getDroppedPacketsCount()
void setOverrunCount(qint32 overrun_count)