Version: 3.0.5
Loading...
Searching...
No Matches
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:70
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
@ wxZLIB_GZIP
gzip header and checksum, requires zlib 1.2.1+
Definition zstream.h:21

Library:  wxBase

<>< =''>:</>&;&;< =''>\ </></>

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::wxStdOutputStream ( wxOutputStream stream)

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

Parameters
streamStream to write to.

◆ ~wxStdOutputStream()

virtual wxStdOutputStream::~wxStdOutputStream ( )
inlinevirtual

Destructor.