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

Function AppendLogFile

DebugView++Test/DebugView++Test.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::string AppendLogFile(const LogFile& logfile)
107{
108 auto filename = GetTestFileName();
109 std::ofstream fs;
110 OpenLogFile(fs, WStr(filename), OpenMode::Append);
111 int count = logfile.Count();
112 for (int i = 0; i < count; ++i)
113 {
114 auto msg = logfile[i];
115 WriteLogFileMessage(fs, msg.time, msg.systemTime, msg.processId, msg.processName, msg.text);
116 }
117 fs.close();
118 return filename;
119}
120
121LogFile LoadLogFile(const std::string& filename)
122{

Callers 1

AppendToTestFileFunction · 0.85

Calls 5

GetTestFileNameFunction · 0.85
OpenLogFileFunction · 0.85
WStrClass · 0.85
WriteLogFileMessageFunction · 0.85
CountMethod · 0.45

Tested by

no test coverage detected