#ifndef LOG2TREEITEMCONVERTER #define LOG2TREEITEMCONVERTER #include "viewmodel/tree/util/ILog2TreeItemConvertor.h" class SimpleLog2TreeItemConverter : ILog2TreeItemConvertor { public: std::unique_ptr convert(const Log_ptr log, const TMap& translatorMap) const override; private: void addIdItem(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addLevelItem(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addSrcItem(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addMsgItem(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addMsgParts(const QList& parts, TreeItem* parent) const; void addStringMessage(const QString& message, TreeItem* parent) const; void addObjectMessage(const LoggedObjectDto& obj, TreeItem* parent) const; void addJsonObject(const QJsonObject& obj, TreeItem* parent) const; void addJsonArray(const QJsonArray& arr, TreeItem* parent) const; void addScopeItem(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addThreadId(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; void addTimestamp(const Log_ptr log, const TMap& translatorMap, TreeItem* parent) const; }; #endif //LOG2TREEITEMCONVERTER