cgv
Loading...
Searching...
No Matches
cgv::signal::callback_streambuf Struct Reference

simple implementation of a streambuf that sends all written text to the write signal that is referenced from the possessing stream More...

#include <callback_stream.h>

Inheritance diagram for cgv::signal::callback_streambuf:

Public Member Functions

 callback_streambuf (cgv::signal::signal< const std::string & > &_write)
 
std::streambuf * setbuf (char_type *buf, std::streamsize n)
 
int_type overflow (int_type c)
 
int sync ()
 

Public Attributes

cgv::signal::signal< const std::string & > & write
 

Detailed Description

simple implementation of a streambuf that sends all written text to the write signal that is referenced from the possessing stream

Definition at line 12 of file callback_stream.h.

Constructor & Destructor Documentation

◆ callback_streambuf()

cgv::signal::callback_streambuf::callback_streambuf ( cgv::signal::signal< const std::string & > &  _write)
inline

Definition at line 16 of file callback_stream.h.

Member Function Documentation

◆ overflow()

int_type cgv::signal::callback_streambuf::overflow ( int_type  c)
inline

Definition at line 24 of file callback_stream.h.

◆ setbuf()

std::streambuf * cgv::signal::callback_streambuf::setbuf ( char_type *  buf,
std::streamsize  n 
)
inline

Definition at line 19 of file callback_stream.h.

◆ sync()

int cgv::signal::callback_streambuf::sync ( )
inline

Definition at line 36 of file callback_stream.h.

Member Data Documentation

◆ write

cgv::signal::signal<const std::string&>& cgv::signal::callback_streambuf::write

Definition at line 14 of file callback_stream.h.


The documentation for this struct was generated from the following file: