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

Function ReadLogFileMessage

DebugView++Lib/FileIO.cpp:252–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool ReadLogFileMessage(const std::string& data, Line& line)
253{
254 try
255 {
256 TabSplitter split(data);
257 line.time = std::stod(split.GetNext());
258 line.systemTime = MakeFileTime(split.GetNext());
259 line.pid = std::stoul(split.GetNext());
260 line.processName = split.GetNext();
261 line.message = split.GetTail();
262 }
263 catch (std::exception& ex)
264 {
265 line.message = stringbuilder() << "Exception: '" << ex.what() << "' occurred processing line: " << data;
266 }
267 return true;
268}
269
270std::ostream& operator<<(std::ostream& os, const FILETIME& ft)
271{

Callers 5

AddLineMethod · 0.85
FileIO.cppFile · 0.85
LoadLogFileFunction · 0.85
GetNewLineOffsetsFunction · 0.85
LoadMethod · 0.85

Calls 3

MakeFileTimeFunction · 0.85
GetNextMethod · 0.80
GetTailMethod · 0.80

Tested by 2

LoadLogFileFunction · 0.68
GetNewLineOffsetsFunction · 0.68