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

Function OpenLogFile

DebugView++Lib/FileIO.cpp:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void OpenLogFile(std::ofstream& ofstream, const std::wstring& filename, OpenMode::type mode)
278{
279 ofstream.open(filename, mode == OpenMode::Truncate ? std::ofstream::trunc : std::ofstream::app);
280
281 if (mode == OpenMode::Truncate)
282 {
283 // intentionally maintain the same amount of Columnns, so it is always easy to parse by csv import tools
284 WriteLogFileMessage(ofstream, 0, Win32::GetSystemTimeAsFileTime(), 0, "DebugView++.exe", g_debugViewPPIdentification1);
285 }
286}
287
288std::string GetOffsetText(double time)
289{

Callers 6

LogMessagesFunction · 0.85
FileWriterMethod · 0.85
SaveLogFileFunction · 0.85
AppendLogFileFunction · 0.85
SaveMethod · 0.85
SaveLogFileMethod · 0.85

Calls 2

WriteLogFileMessageFunction · 0.85
GetSystemTimeAsFileTimeFunction · 0.85

Tested by 2

SaveLogFileFunction · 0.68
AppendLogFileFunction · 0.68