MCPcopy Create free account
hub / github.com/cirquit/trdrop / FileStream

Method FileStream

ext/catch.hpp:7439–7446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7437 ///////////////////////////////////////////////////////////////////////////
7438
7439 FileStream::FileStream( std::string const& filename ) {
7440 m_ofs.open( filename.c_str() );
7441 if( m_ofs.fail() ) {
7442 std::ostringstream oss;
7443 oss << "Unable to open file: '" << filename << '\'';
7444 throw std::domain_error( oss.str() );
7445 }
7446 }
7447
7448 std::ostream& FileStream::stream() const {
7449 return m_ofs;

Callers

nothing calls this directly

Calls 1

openMethod · 0.80

Tested by

no test coverage detected