18 #include <QJsonDocument> 73 QByteArray array (json.toStdString().c_str());
74 QJsonDocument doc = QJsonDocument::fromJson(array);
75 QJsonObject jsonObject = doc.object();
97 QJsonDocument doc(*obj);
98 QByteArray bytes = doc.toJson();
100 return QString(bytes);
105 QJsonObject* obj =
new QJsonObject();
165 bool isObjectUpdated =
false;
170 if(
file_name !=
nullptr && *
file_name != QString(
"")){ isObjectUpdated =
true;
break;}
172 return isObjectUpdated;
void setFileLevel(QString *file_level)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual QJsonObject * asJsonObject() override
bool m_dump_to_file_isSet
virtual ~SWGLoggingInfo()
bool m_console_level_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual bool isSet() override
virtual QString asJson() override
QString * getConsoleLevel()
void setConsoleLevel(QString *console_level)
void setFileName(QString *file_name)
virtual void fromJsonObject(QJsonObject &json) override
virtual SWGLoggingInfo * fromJson(QString &jsonString) override
void setDumpToFile(qint32 dump_to_file)