Rosetta
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
basic::PyTracer Class Reference

Special PyRosetta friendly Tracer like buffer. Use it to capture Tracer output with set_ios_hook. More...

#include <Tracer.hh>

Inheritance diagram for basic::PyTracer:
Inheritance graph
[legend]

Public Member Functions

std::string buf ()
 
void buf (std::string b)
 
virtual void output_callback (std::string)
 
- Public Member Functions inherited from basic::basic_otstream< CharT, Traits >
 basic_otstream ()
 
 ~basic_otstream () override
 
bool is_flushed () const
 Return true if inner string buffer is empty. More...
 

Protected Member Functions

void t_flush (std::string const &) override
 overload member function. More...
 

Private Attributes

std::string buf_
 

Detailed Description

Special PyRosetta friendly Tracer like buffer. Use it to capture Tracer output with set_ios_hook.

Member Function Documentation

◆ buf() [1/2]

std::string basic::PyTracer::buf ( )
inline

◆ buf() [2/2]

void basic::PyTracer::buf ( std::string  b)
inline

◆ output_callback()

virtual void basic::PyTracer::output_callback ( std::string  )
inlinevirtual

Referenced by t_flush().

◆ t_flush()

void basic::PyTracer::t_flush ( std::string const &  str)
overrideprotectedvirtual

overload member function.

Reimplemented from basic::basic_otstream< CharT, Traits >.

References buf_, output_callback(), and str().

Member Data Documentation

◆ buf_

std::string basic::PyTracer::buf_
private

Referenced by buf(), and t_flush().


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