MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / AddLine

Method AddLine

DebugView++Lib/DBLogReader.cpp:53–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void DBLogReader::AddLine(const std::string& data)
54{
55 ++m_linenumber;
56 Line line;
57 switch (m_fileType)
58 {
59 case FileType::Unknown:
60 case FileType::AsciiText:
61 return FileReader::AddLine(data);
62 case FileType::Sysinternals:
63 ReadSysInternalsLogFileMessage(data, line, m_converter);
64 GetRelativeTime(line);
65 break;
66 case FileType::DebugViewPP1:
67 case FileType::DebugViewPP2:
68 if (m_linenumber == 1) // ignore the header line
69 {
70 return;
71 }
72 ReadLogFileMessage(data, line);
73 break;
74 default:
75 assert(false && "Unknown Filetype in DBLogReader");
76 }
77
78 Add(line.time, line.systemTime, line.pid, line.processName, line.message);
79}
80
81void DBLogReader::PreProcess(Line& line) const
82{

Callers

nothing calls this directly

Calls 2

ReadLogFileMessageFunction · 0.85

Tested by

no test coverage detected