23 #ifndef _SPLIT_STREAM_H_
24 #define _SPLIT_STREAM_H_
57 std::streamsize xsputn(
char const* str, std::streamsize size);
86 SplitStream(std::ostream& stream1, std::ostream& stream2);
91 SplitStream(std::vector<std::ostream*>& streamList);
98 void assign(std::ostream& stream = std::cout);
99 void assign(std::ostream& stream1, std::ostream &stream2);
100 void assign(std::vector<std::ostream*>& streamsList);
SplitStreamBuf * _buffer
pointer to output stream buffer
This class wraps a list of output streams and pipes output made to a splitstream instance to all of t...
charon_core_DLL_PUBLIC SplitStream sout
Dummy instance for usage in other files (for interface too).
#define charon_core_LOCAL
Preprocessor macro to define this class/function as hidden, i.e.
Buffer to split output on several streams.
#define charon_core_DLL_PUBLIC
Preprocessor macro to define this class/function as public visible, i.e.
Dynamic library API import/export prprocessor macros.
std::vector< std::streambuf * > _buffers
pointer to stream buffers
std::vector< std::streambuf * > _buffers
buffer array