#include <multiplexStreamBuf.h>
Public Types | |
| enum | BufferType { BT_none, BT_line } |
| enum | OutputType { OT_ostream, OT_stdio, OT_system_debug } |
Public Member Functions | |
| MultiplexStreamBuf () | |
| virtual | ~MultiplexStreamBuf () |
| void | add_output (BufferType buffer_type, OutputType output_type, ostream *out=(ostream *) NULL, FILE *fout=(FILE *) NULL, bool owns_obj=false) |
| void | flush () |
Protected Member Functions | |
| virtual int | overflow (int c) |
| virtual int | sync () |
Private Types | |
| typedef pvector< Output > | Outputs |
Private Member Functions | |
| void | write_chars (const char *start, int length, bool flush) |
Private Attributes | |
| Outputs | _outputs |
| string | _line_buffer |
|
|
Definition at line 80 of file multiplexStreamBuf.h. |
|
|
Definition at line 42 of file multiplexStreamBuf.h. |
|
|
Definition at line 47 of file multiplexStreamBuf.h. |
|
|
Definition at line 97 of file multiplexStreamBuf.cxx. |
|
|
Definition at line 111 of file multiplexStreamBuf.cxx. References _outputs, MultiplexStreamBuf::Output::close(), and sync(). |
|
||||||||||||||||||||||||
|
Definition at line 130 of file multiplexStreamBuf.cxx. References MultiplexStreamBuf::Output::_buffer_type, MultiplexStreamBuf::Output::_fout, MultiplexStreamBuf::Output::_out, MultiplexStreamBuf::Output::_output_type, _outputs, and MultiplexStreamBuf::Output::_owns_obj. |
|
|
Definition at line 155 of file multiplexStreamBuf.cxx. References write_chars(). |
|
|
Definition at line 170 of file multiplexStreamBuf.cxx. References c, n, streamsize, and write_chars(). |
|
|
Definition at line 199 of file multiplexStreamBuf.cxx. References n, streamsize, and write_chars(). Referenced by ~MultiplexStreamBuf(). |
|
||||||||||||||||
|
Definition at line 229 of file multiplexStreamBuf.cxx. References MultiplexStreamBuf::Output::_buffer_type, _line_buffer, _outputs, BT_line, BT_none, length, start, and MultiplexStreamBuf::Output::write_string(). Referenced by flush(), overflow(), and sync(). |
|
|
Definition at line 83 of file multiplexStreamBuf.h. Referenced by write_chars(). |
|
|
Definition at line 81 of file multiplexStreamBuf.h. Referenced by add_output(), write_chars(), and ~MultiplexStreamBuf(). |
1.3