MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / OpenInputFile

Function OpenInputFile

src/tw/textreportviewer.cpp:1718–1726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716//=========================================================================
1717
1718void OpenInputFile(std::ifstream& in, const TSTRING& strFile) // throw( eTextReportViewer )
1719{
1720 in.open(cStringUtil::TstrToStr(strFile).c_str());
1721
1722 if (!in.is_open())
1723 {
1724 throw eTextReportViewerFileOpen(strFile);
1725 }
1726}
1727
1728void OpenOutputFile(fixed_basic_ofstream<TCHAR>& out, const TSTRING& strFile) // throw( eTextReportViewer )
1729{

Callers 1

ReadTextReportMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected