Panda3D
Classes | 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. More...
 
void flush ()
 Forces out all output that hasn't yet been written. More...
 

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 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 110 of file multiplexStreamBuf.cxx.

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

◆ flush()

void MultiplexStreamBuf::flush ( void  )

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

Definition at line 132 of file multiplexStreamBuf.cxx.

Referenced by MultiplexStream::flush().


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