14#ifndef MULTIPLEXSTREAM_H
15#define MULTIPLEXSTREAM_H
31class EXPCL_PANDA_DOWNLOADER MultiplexStream :
public std::ostream {
33 INLINE MultiplexStream();
36 INLINE MultiplexStream(
const MultiplexStream ©) =
delete;
39 INLINE
void add_ostream(std::ostream *out,
bool delete_later =
false);
The name of a file, such as a texture file or an Egg file.
Used by MultiplexStream to implement an ostream that sends what is written to it to any number of add...
void flush()
Forces out all output that hasn't yet been written.
bool add_stdio_file(FILE *file, bool close_when_done)
Adds the given file, previously opened using the C stdio library, to the multiplex output.
void add_standard_output()
Adds the standard output channel.
void add_system_debug()
Adds the system debug output the the multiplex output.
void add_ostream(std::ostream *out, bool delete_later=false)
Adds the indicated generic ostream to the multiplex output.
bool add_file(Filename file)
Adds the given file to the multiplex output.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.