MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / FileStream

Method FileStream

unittests/catch.hpp:9435–9438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9433 mutable std::ofstream m_ofs;
9434 public:
9435 FileStream( StringRef filename ) {
9436 m_ofs.open( filename.c_str() );
9437 CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << "'" );
9438 }
9439 ~FileStream() override = default;
9440 public: // IStream
9441 std::ostream& stream() const override {

Callers

nothing calls this directly

Calls 3

failMethod · 0.80
openMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected