17 INLINE MultiplexStream::
18 MultiplexStream() : std::ostream(&_msb) {
19 setf(std::ios::unitbuf);
29 MultiplexStreamBuf::OT_ostream,
30 out,
nullptr, delete_later);
40 MultiplexStreamBuf::OT_ostream,
41 nullptr, fout, close_when_done);
51 MultiplexStreamBuf::OT_ostream,
52 &std::cout,
nullptr,
false);
62 pofstream *out =
new pofstream;
67 out->setf(std::ios::unitbuf);
70 MultiplexStreamBuf::OT_ostream,
85 MultiplexStreamBuf::OT_system_debug);
void add_ostream(std::ostream *out, bool delete_later=false)
Adds the indicated generic ostream to the multiplex output.
bool open_append(std::ofstream &stream) const
Opens the indicated ofstream for writing the file, if possible.
void set_text()
Indicates that the filename represents a text file.
void flush()
Forces out all output that hasn't yet been written.
void flush()
Forces out all output that hasn't yet been written.
void add_output(BufferType buffer_type, OutputType output_type, std::ostream *out=nullptr, FILE *fout=nullptr, bool owns_obj=false)
Adds the indicated output destinition to the set of things that will be written to when characters ar...
bool add_file(Filename file)
Adds the given file to the multiplex output.
void add_system_debug()
Adds the system debug output the the multiplex output.
The name of a file, such as a texture file or an Egg file.
void add_standard_output()
Adds the standard output channel.
bool add_stdio_file(FILE *file, bool close_when_done)
Adds the given file, previously opened using the C stdio library, to the multiplex output.