Version: 3.0.2
wxStdOutputStream Class Reference

#include <wx/stdstream.h>

+ Inheritance diagram for wxStdOutputStream:

Detailed Description

wxStdOutputStream is a std::ostream derived stream which writes to a wxOutputStream.

Example:

wxFFileOutputStream file("out.txt.gz");
wxZlibOutputStream gzipOutput(file, -1, wxZLIB_GZIP);
wxStdOutputStream out(gzipOutput);
out << "Hello world!" << std::endl;

Library:  wxBase
Category:  Streams
See Also
wxOutputStream, wxStdOutputStreamBuffer

Public Member Functions

 wxStdOutputStream (wxOutputStream &stream)
 Creates a std::ostream derived stream which writes to a wxOutputStream.
 
virtual ~wxStdOutputStream ()
 Destructor.
 

Constructor & Destructor Documentation

wxStdOutputStream::wxStdOutputStream ( wxOutputStream stream)

Creates a std::ostream derived stream which writes to a wxOutputStream.

Parameters
streamStream to write to.
virtual wxStdOutputStream::~wxStdOutputStream ( )
inlinevirtual

Destructor.