Version: 3.3.0
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;
This class represents data written to a file.
Definition: wfstream.h:118
wxStdOutputStream is a std::ostream derived stream which writes to a wxOutputStream.
Definition: stdstream.h:174
This stream compresses all data written to it.
Definition: zstream.h:44
wxTextOutputStream & endl(wxTextOutputStream &stream)
Writes '\n' to stream.
@ wxZLIB_GZIP
gzip header and checksum, requires zlib 1.2.1+
Definition: zstream.h:21

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. More...
 
virtual ~wxStdOutputStream ()
 Destructor. More...
 

Constructor & Destructor Documentation

◆ wxStdOutputStream()

wxStdOutputStream::wxStdOutputStream ( wxOutputStream stream)

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

Parameters
streamStream to write to.

◆ ~wxStdOutputStream()

virtual wxStdOutputStream::~wxStdOutputStream ( )
virtual

Destructor.