18 #include <QJsonDocument> 72 QByteArray array (json.toStdString().c_str());
73 QJsonDocument doc = QJsonDocument::fromJson(array);
74 QJsonObject jsonObject = doc.object();
98 QJsonDocument doc(*obj);
99 QByteArray bytes = doc.toJson();
101 return QString(bytes);
106 QJsonObject* obj =
new QJsonObject();
108 obj->insert(
"success", QJsonValue(
success));
111 obj->insert(
"fifoSize", QJsonValue(
fifo_size));
114 obj->insert(
"fifoFill", QJsonValue(
fifo_fill));
117 obj->insert(
"temperature", QJsonValue(
temperature));
120 obj->insert(
"gpsLock", QJsonValue(
gps_lock));
179 bool isObjectUpdated =
false;
187 return isObjectUpdated;
virtual void fromJsonObject(QJsonObject &json) override
virtual QString asJson() override
virtual SWGXtrxOutputReport * fromJson(QString &jsonString) override
void setFifoSize(qint32 fifo_size)
void setSuccess(qint32 success)
virtual bool isSet() override
void setGpsLock(qint32 gps_lock)
void setTemperature(float temperature)
void setFifoFill(qint32 fifo_fill)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual QJsonObject * asJsonObject() override
virtual ~SWGXtrxOutputReport()