Hall-D Software
alpha
|
fork output stream class More...
#include <tee.h>
Public Member Functions | |
ostreambuf () | |
construct NOP object More... | |
void | add (std::streambuf *sb) |
add an output streembuf to write to More... | |
void | remove (std::streambuf *sb) |
remove a streambuf to write to More... | |
void | add (std::ostream &os) |
add an output ostream to write to More... | |
void | remove (std::ostream &os) |
remove an output ostream to write to More... | |
~ostreambuf () | |
closes the streambuf stream More... | |
Protected Member Functions | |
std::streamsize | available () const |
remaining characters in the buffer More... | |
std::streamsize | taken () const |
number of characters in the buffer More... | |
Private Member Functions | |
int | sync () |
flush as much data as possible (overloaded from streambuf) More... | |
int | overflow (int c) |
write a character that supasses buffer end (overloaded from streambuf) More... | |
std::streamsize | xsputn (const char *buffer, std::streamsize n) |
write an entire buffer (overloaded from streambuf) More... | |
Private Attributes | |
std::set< std::streambuf * > | destinations |
fork output stream class
when data is written to it, it writes it to several other streambufs error handling is as follows:
eof
is returned
|
inline |
xstream::tee::ostreambuf::~ostreambuf | ( | ) |
void xstream::tee::ostreambuf::add | ( | std::streambuf * | sb | ) |
add an output streembuf to write to
Definition at line 15 of file tee.cpp.
References destinations, and LOG.
Referenced by main().
void xstream::tee::ostreambuf::add | ( | std::ostream & | os | ) |
add an output ostream to write to
higher level syntatic sugar for the streambuf version
Definition at line 20 of file tee.cpp.
References destinations, and LOG.
|
inlineprotectedinherited |
remaining characters in the buffer
Definition at line 28 of file common.h.
Referenced by xstream::base64::ostreambuf::~ostreambuf().
|
private |
write a character that supasses buffer end (overloaded from streambuf)
Definition at line 66 of file tee.cpp.
References c, destinations, xstream::tee::eof, and LOG.
void xstream::tee::ostreambuf::remove | ( | std::streambuf * | sb | ) |
remove a streambuf to write to
Definition at line 25 of file tee.cpp.
References destinations, and LOG.
void xstream::tee::ostreambuf::remove | ( | std::ostream & | os | ) |
remove an output ostream to write to
higher level syntatic sugar for the streambuf version
Definition at line 30 of file tee.cpp.
References destinations, and LOG.
|
private |
flush as much data as possible (overloaded from streambuf)
Definition at line 35 of file tee.cpp.
References destinations, xstream::tee::eof, and LOG.
|
inlineprotectedinherited |
number of characters in the buffer
Definition at line 36 of file common.h.
Referenced by xstream::digest::stream::xsputn().
|
private |
write an entire buffer (overloaded from streambuf)
Definition at line 98 of file tee.cpp.
References destinations, xstream::tee::eof, and LOG.
|
private |