Log Viewer
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.
 
 

27 lines
678 B

#ifndef ILOG2TREEITEMCONVERTOR
#define ILOG2TREEITEMCONVERTOR
#include <memory>
#include "type/Log.h"
#include "viewmodel/tree/TreeItem.h"
#include "viewmodel/displayString/IDisplayProvider.h"
#include "viewmodel/table/ELogColumn.h"
#include <QMap>
class ILog2TreeItemConvertor
{
protected:
using TMap = QMap<ELogColumn, DisplayStringProvider_ptr>;
public:
virtual ~ILog2TreeItemConvertor()
{
}
virtual std::unique_ptr<TreeItem> convert(const Log_ptr log,
const TMap& translatorMap) const = 0;
};
using Log2TreeItemConvertor_ptr = std::shared_ptr<ILog2TreeItemConvertor>();
#endif //ILOG2TREEITEMCONVERTOR