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

Method getContents

tests/catch.hpp:9622–9630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9620 }
9621
9622 std::string TempFile::getContents() {
9623 std::stringstream sstr;
9624 char buffer[100] = {};
9625 std::rewind(m_file);
9626 while (std::fgets(buffer, sizeof(buffer), m_file)) {
9627 sstr << buffer;
9628 }
9629 return sstr.str();
9630 }
9631
9632 OutputRedirect::OutputRedirect(std::string& stdout_dest, std::string& stderr_dest) :
9633 m_originalStdout(dup(1)),

Callers 1

~OutputRedirectMethod · 0.80

Calls 1

strMethod · 0.80

Tested by

no test coverage detected