8 #ifndef __XSTREAM_TEE_H
9 #define __XSTREAM_TEE_H
58 std::streamsize
xsputn(
const char *
buffer, std::streamsize n);
70 void add(std::streambuf* sb);
76 void remove(std::streambuf* sb);
83 void add(std::ostream& os);
90 void remove(std::ostream& os);
std::set< std::streambuf * > destinations
int sync()
flush as much data as possible (overloaded from streambuf)
~ostreambuf()
closes the streambuf stream
void add(std::streambuf *sb)
add an output streembuf to write to
std::streamsize xsputn(const char *buffer, std::streamsize n)
write an entire buffer (overloaded from streambuf)
ostreambuf()
construct NOP object
int overflow(int c)
write a character that supasses buffer end (overloaded from streambuf)