#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 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