MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / CoutStream

Class CoutStream

tests/catch.hpp:11003–11013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11001 ///////////////////////////////////////////////////////////////////////////
11002
11003 class CoutStream : public IStream {
11004 mutable std::ostream m_os;
11005 public:
11006 // Store the streambuf from cout up-front because
11007 // cout may get redirected when running tests
11008 CoutStream() : m_os( Catch::cout().rdbuf() ) {}
11009 ~CoutStream() override = default;
11010
11011 public: // IStream
11012 std::ostream& stream() const override { return m_os; }
11013 };
11014
11015 ///////////////////////////////////////////////////////////////////////////
11016

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected