Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
StreamCapture Class Reference

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
 
StreamCaptureoperator= (const StreamCapture &)=delete
 

Detailed Description

Tee std::cout and std::cerr into a callback while active (one instance per thread).

Constructor & Destructor Documentation

◆ StreamCapture() [1/2]

StreamCapture::StreamCapture ( std::function< void(const std::string &line)>  onLine)
explicit

◆ ~StreamCapture()

StreamCapture::~StreamCapture ( )

◆ StreamCapture() [2/2]

StreamCapture::StreamCapture ( const StreamCapture )
delete

Member Function Documentation

◆ operator=()

StreamCapture & StreamCapture::operator= ( const StreamCapture )
delete

The documentation for this class was generated from the following files: