Class CaptureStandardOutput

Class Documentation

class common::CaptureStandardOutput

Capture the output that is streamed to std::cout in the active scope.

E.g. usage: std::string data; { common::CaptureStandardOutput capture; extranal_function.print(); // uses std::cout data = capture.getString(); }

Public Functions

inline CaptureStandardOutput()
inline ~CaptureStandardOutput()
inline std::string getString()