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

Method Save

DebugView++/LogView.cpp:1667–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667void CLogView::Save(const std::wstring& filename) const
1668{
1669 std::ofstream fs;
1670 OpenLogFile(fs, filename);
1671
1672 int lines = GetItemCount();
1673 for (int i = 0; i < lines; ++i)
1674 {
1675 int line = m_logLines[i].line;
1676 const Message& msg = m_logFile[line];
1677 WriteLogFileMessage(fs, msg.time, msg.systemTime, msg.processId, msg.processName, msg.text);
1678 }
1679
1680 fs.close();
1681 if (!fs)
1682 Win32::ThrowLastError(filename);
1683}
1684
1685LogFilter CLogView::GetFilters() const
1686{

Callers 1

SaveViewFileMethod · 0.80

Calls 4

OpenLogFileFunction · 0.85
WriteLogFileMessageFunction · 0.85
ThrowLastErrorFunction · 0.85
GetItemCountFunction · 0.50

Tested by

no test coverage detected