|
Panda3D
|
Used by MultiplexStream to implement an ostream that sends what is written to it to any number of additional sources, like other ostreams. More...
#include "multiplexStreamBuf.h"
Public Types | |
| enum | BufferType { BT_none , BT_line } |
| enum | OutputType { OT_ostream , OT_stdio , OT_system_debug } |
Public Member Functions | |
| 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 are output to the MultiplexStream. | |
| void | flush () |
| Forces out all output that hasn't yet been written. | |
Used by MultiplexStream to implement an ostream that sends what is written to it to any number of additional sources, like other ostreams.
Definition at line 27 of file multiplexStreamBuf.h.
| enum MultiplexStreamBuf::BufferType |
Definition at line 32 of file multiplexStreamBuf.h.
| enum MultiplexStreamBuf::OutputType |
Definition at line 37 of file multiplexStreamBuf.h.
| MultiplexStreamBuf::MultiplexStreamBuf | ( | ) |
Definition at line 81 of file multiplexStreamBuf.cxx.
|
virtual |
Definition at line 93 of file multiplexStreamBuf.cxx.
| void MultiplexStreamBuf::add_output | ( | MultiplexStreamBuf::BufferType | buffer_type, |
| MultiplexStreamBuf::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 are output to the MultiplexStream.
Definition at line 109 of file multiplexStreamBuf.cxx.
| void MultiplexStreamBuf::flush | ( | ) |
Forces out all output that hasn't yet been written.
Definition at line 131 of file multiplexStreamBuf.cxx.