|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
Tee std::cout and std::cerr into a callback while active (one instance per thread). More...
#include <log_capture.h>
Public Member Functions | |
| StreamCapture (std::function< void(const std::string &line)> onLine) | |
| ~StreamCapture () | |
| StreamCapture (const StreamCapture &)=delete | |
| StreamCapture & | operator= (const StreamCapture &)=delete |
Tee std::cout and std::cerr into a callback while active (one instance per thread).
|
explicit |
| StreamCapture::~StreamCapture | ( | ) |
|
delete |
|
delete |