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.

84 lines
2.7 KiB

#include "viewmodel/displayString/SimpleDisplayProviderCreator.h"
#include "viewmodel/displayString/SimpleThreadIdDisplay.h"
6 months ago
#include "viewmodel/displayString/SimpleIdDisplay.h"
#include "viewmodel/displayString/SimpleLevelDisplay.h"
#include "viewmodel/displayString/SimpleTimeStampDisplay.h"
#include "viewmodel/displayString/FilenameDisplay.h"
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createDisplayProvider(ELogColumn column)
const
{
switch(column)
{
case threadId:
6 months ago
return createThreadId();
case id:
return createId();
case level:
return createLevel();
case timestamp:
return createTimestamp();
case file:
return createFile();
default:
return nullptr;
}
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createId() const
{
6 months ago
return std::make_shared<SimpleIdDisplay>();
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createLevel() const
{
return std::make_shared<SimpleLevelDisplay>();
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createTimestamp() const
{
return std::make_shared<SimpleTimeStampDisplay>();
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createFile() const
{
return std::make_shared<FilenameDisplay>();
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createFunc() const
{
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createLineno() const
{
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createMsg() const
{
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createScope() const
{
}
/*************************************************************************************************/
DisplayStringProvider_ptr SimpleDisplayProviderCreator::createThreadId() const
{
6 months ago
return std::make_shared<SimpleThreadIdDisplay>();
}