|
scc
2024.06
SystemC components library
|
stream redirector More...
#include <report.h>


Public Member Functions | |
| stream_redirection (std::ostream &os, log level) | |
| constructor redirecting the given stream to a SystemC log message of given llog level More... | |
| stream_redirection (stream_redirection const &)=delete | |
| stream_redirection & | operator= (stream_redirection const &)=delete |
| stream_redirection (stream_redirection &&)=delete | |
| stream_redirection & | operator= (stream_redirection &&)=delete |
| ~stream_redirection () | |
| destructor restoring the output stream buffer | |
| void | reset () |
| reset the stream redirection and restore output buffer of the stream | |
Protected Member Functions | |
| std::streamsize | xsputn (const char_type *s, std::streamsize n) override |
| int | sync () override |
Protected Attributes | |
| std::ostream & | os |
| log | level |
| std::streambuf * | old_buf {nullptr} |
stream redirector
the stream redirector allows to redirect std::cout and std::cerr into SystemC log messages
| scc::stream_redirection::stream_redirection | ( | std::ostream & | os, |
| scc::log | level | ||
| ) |
constructor redirecting the given stream to a SystemC log message of given llog level
| os | the stream to be redirected |
| level | the log level to use |