# MultiplexStream

from pandac.PandaModules import MultiplexStream

Class : MultiplexStream
Description : This is a special ostream that forwards the data that is written to it to any number of other sources, for instance other ostreams, or explicitly to a disk file or to system logging utilities. It's a very handy thing to set Notify to refer to when running in batch mode.

## Inheritance:

MultiplexStream: ostream
ostream: ios
ios: ios_base
ios_base:

## Methods of MultiplexStream:

MultiplexStream (Constructor)
addFile
addOstream
addStandardOutput
addStdioFile
addSystemDebug
flush

## Methods of ostream:

flush
put
seekp
tellp

## Methods of ios:

bad
clear
eof
fail
good

## Constants in ios_base:

beg | (seekdir)
cur | (seekdir)
end | (seekdir)

MultiplexStream MultiplexStream::MultiplexStream(void); Description:

addFile bool MultiplexStream::add_file(Filename file); Description: Adds the given file to the multiplex output. The file is opened in append mode with line buffering. Returns false if the file cannot be opened.

addOstream void MultiplexStream::add_ostream(ostream *out, bool delete_later = (0)); Description: Adds the indicated generic ostream to the multiplex output. The ostream will receive whatever data is sent to the pipe.

addStandardOutput void MultiplexStream::add_standard_output(void); Description: Adds the standard output channel.

addStdioFile bool MultiplexStream::add_stdio_file(FILE *file, bool close_when_done); Description: Adds the given file, previously opened using the C stdio library, to the multiplex output.

addSystemDebug void MultiplexStream::add_system_debug(void); Description: Adds the system debug output the the multiplex output. This may map to a syslog or some such os-specific output system. It may do nothing on a particular system. Presently, this maps only to OutputDebugString() on Windows.

flush void MultiplexStream::flush(void); Description: Forces out all output that hasn't yet been written.

flush void ostream::flush(void); Undocumented function.

put void ostream::put(char c); Undocumented function.

seekp void ostream::seekp(unsigned long int pos); Undocumented function.

tellp unsigned long int ostream::tellp(void); Undocumented function.

bad bool ios::bad(void) const; Undocumented function.

clear void ios::clear(void); Undocumented function.

eof bool ios::eof(void) const; Undocumented function.

fail bool ios::fail(void) const; Undocumented function.

good bool ios::good(void) const; Undocumented function.