You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
975 B
21 lines
975 B
#ifndef LOG2TREEITEMCONVERTER
|
|
#define LOG2TREEITEMCONVERTER
|
|
|
|
#include "viewmodel/tree/util/ILog2TreeItemConvertor.h"
|
|
|
|
class SimpleLog2TreeItemConverter : ILog2TreeItemConvertor
|
|
{
|
|
public:
|
|
std::unique_ptr<TreeItem> 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
|
|
|