forked from CobaltFusion/DebugViewPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoopback.cpp
More file actions
33 lines (26 loc) · 708 Bytes
/
Copy pathLoopback.cpp
File metadata and controls
33 lines (26 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// (C) Copyright Gert-Jan de Vos and Jan Wilmans 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "DebugViewppLib/Loopback.h"
namespace fusion {
namespace debugviewpp {
Loopback::Loopback(Timer& timer, ILineBuffer& linebuffer) :
LogSource(timer, SourceType::System, linebuffer)
{
SetDescription(L"Loopback");
}
Loopback::~Loopback() = default;
bool Loopback::GetAutoNewLine() const
{
return true;
}
void Loopback::PreProcess(Line& line) const
{
if (line.message.empty())
{
line.message = "\n";
}
}
} // namespace debugviewpp
} // namespace fusion