ui: log tab
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef MESSAGE_NEW_LOG_H
|
||||
#define MESSAGE_NEW_LOG_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
#include "utility/logging/logging.h"
|
||||
|
||||
class MessageNewLog
|
||||
: public Message<MessageNewLog>
|
||||
{
|
||||
public:
|
||||
MessageNewLog(const Logger::LogLevel type, const LogMessage& message)
|
||||
: type(type)
|
||||
, message(message)
|
||||
{
|
||||
setSendAsTask(false);
|
||||
setIsLogged(false);
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageNewLog";
|
||||
}
|
||||
|
||||
virtual void print(std::ostream& os) const
|
||||
{
|
||||
os << "Log: " << message.message;
|
||||
}
|
||||
|
||||
const Logger::LogLevel type;
|
||||
const LogMessage message;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_NEW_LOG_H
|
||||
@@ -46,6 +46,8 @@ namespace utility
|
||||
|
||||
template<typename T>
|
||||
std::vector<std::string> toStrings(const std::vector<T>& d);
|
||||
template<>
|
||||
std::vector<std::string> toStrings(const std::vector<FilePath>& d);
|
||||
|
||||
template<typename T>
|
||||
bool isPermutation(const std::vector<T>& a, const std::vector<T>& b)
|
||||
|
||||
Reference in New Issue
Block a user