15 #ifndef MULTIPLEXSTREAMBUF_H 16 #define MULTIPLEXSTREAMBUF_H 18 #include "pandabase.h" 45 void add_output(BufferType buffer_type, OutputType output_type,
46 ostream *out = (ostream *)NULL,
47 FILE *fout = (FILE *)NULL,
48 bool owns_obj =
false);
53 virtual int overflow(
int c);
57 void write_chars(
const char *start,
int length,
bool flush);
63 void write_string(
const string &str);
65 BufferType _buffer_type;
66 OutputType _output_type;
78 #include "multiplexStreamBuf.I"
Used by MultiplexStream to implement an ostream that sends what is written to it to any number of add...