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.
26 lines
1.3 KiB
26 lines
1.3 KiB
#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 addMsgParts(const QList<MessagePart>& 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
|
|
|