| 4599 | std::ofstream m_ofs; |
| 4600 | public: |
| 4601 | FileStream( std::string const& filename ) { |
| 4602 | m_ofs.open( filename.c_str() ); |
| 4603 | CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << '\'' ); |
| 4604 | m_ofs << std::unitbuf; |
| 4605 | } |
| 4606 | public: // IStream |
| 4607 | std::ostream& stream() override { |
| 4608 | return m_ofs; |