wxStdOutputStream Class Reference | wxWidgets

| Version: 3.2.11

Loading...
Searching...
No Matches
Public Member Functions | List of all members
wxStdOutputStream Class Reference
Class List by Category » Streams

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.2/wxWidgets3.2-3.2.11-1.x86_64/src/wxWidgets-3.2.11/interface/wx/stdstream.h>`

Inheritance diagram for wxStdOutputStream:
[legend]

## 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;
wxFFileOutputStream
This class represents data written to a file.
Definition wfstream.h:118
wxStdOutputStream::wxStdOutputStream
wxStdOutputStream(wxOutputStream &stream)
Creates a std::ostream derived stream which writes to a wxOutputStream.
wxZlibOutputStream
This stream compresses all data written to it.
Definition zstream.h:44
wxZLIB_GZIP
@ 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.
virtual | ~wxStdOutputStream ()
| Destructor.

## Constructor & Destructor Documentation

## ◆ wxStdOutputStream()

wxStdOutputStream::wxStdOutputStream | ( | wxOutputStream & | stream | ) |

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

Parameters

  stream | Stream to write to.

## ◆ ~wxStdOutputStream()

virtual wxStdOutputStream::~wxStdOutputStream | ( |  | ) |
| virtual

Destructor.