Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
MultiplexStreamBuf Class Reference

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"

Inheritance diagram for MultiplexStreamBuf:

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.
 

Detailed Description

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.

Member Enumeration Documentation

◆ BufferType

enum MultiplexStreamBuf::BufferType

Definition at line 32 of file multiplexStreamBuf.h.

◆ OutputType

enum MultiplexStreamBuf::OutputType

Definition at line 37 of file multiplexStreamBuf.h.

Constructor & Destructor Documentation

◆ MultiplexStreamBuf()

MultiplexStreamBuf::MultiplexStreamBuf ( )

Definition at line 81 of file multiplexStreamBuf.cxx.

◆ ~MultiplexStreamBuf()

MultiplexStreamBuf::~MultiplexStreamBuf ( )
virtual

Definition at line 93 of file multiplexStreamBuf.cxx.

Member Function Documentation

◆ add_output()

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.

Referenced by MultiplexStream::add_file(), MultiplexStream::add_ostream(), MultiplexStream::add_standard_output(), MultiplexStream::add_stdio_file(), and MultiplexStream::add_system_debug().

◆ flush()

void MultiplexStreamBuf::flush ( )

Forces out all output that hasn't yet been written.

Definition at line 131 of file multiplexStreamBuf.cxx.

Referenced by MultiplexStream::flush().


The documentation for this class was generated from the following files: