scc 2025.09
SystemC components library
util::IoRedirector Class Reference

allows to capture the strings written to std::cout and std::cerr (MT-safe) More...

#include <io-redirector.h>

Public Member Functions

void start ()
void stop ()
bool is_active ()
std::string get_output (bool blocking=false)

Static Public Member Functions

static IoRedirector & get ()

Detailed Description

allows to capture the strings written to std::cout and std::cerr (MT-safe)

Definition at line 34 of file io-redirector.h.

Member Function Documentation

◆ get()

IoRedirector & util::IoRedirector::get ( )
inlinestatic

Definition at line 46 of file io-redirector.h.

◆ get_output()

auto util::IoRedirector::get_output ( bool blocking = false)

Definition at line 109 of file io-redirector.cpp.

◆ is_active()

auto util::IoRedirector::is_active ( )

Definition at line 63 of file io-redirector.cpp.

◆ start()

void util::IoRedirector::start ( )

Definition at line 47 of file io-redirector.cpp.

◆ stop()

void util::IoRedirector::stop ( )

Definition at line 68 of file io-redirector.cpp.


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