wxWidgets: wxStdInputStream Class Reference

| Version: 3.1.5

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

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

Inheritance diagram for wxStdInputStream:
[legend]

## Detailed Description

wxStdInputStream is a std::istream derived stream which reads from a wxInputStream.

Example:

wxFFileInputStream file("words.txt");
wxStdInputStream in(file);
std::vector<std::string> words;
// read words from words.txt
std::copy(std::istream_iterator<std::string>(in),
std::istream_iterator<std::string>(),
std::back_inserter(words));
// sort and remove duplicates
std::sort(words.begin(), words.end());
words.resize(std::unique(words.begin(), words.end()) - words.begin());
// print words
std::copy(words.begin(), words.end(),
std::ostream_iterator<std::string>(std::cout, "\n"));
wxFFileInputStream
This class represents data read in from a file.
Definition wfstream.h:284
wxStdInputStream::wxStdInputStream
wxStdInputStream(wxInputStream &stream)
Creates a std::istream derived stream which reads from a wxInputStream.

##

Library: wxBase

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

See also
  wxInputStream, wxStdInputStreamBuffer

## Public Member Functions
| wxStdInputStream (wxInputStream &stream)
| Creates a std::istream derived stream which reads from a wxInputStream.
virtual | ~wxStdInputStream ()
| Destructor.

## Constructor & Destructor Documentation

## ◆ wxStdInputStream()

wxStdInputStream::wxStdInputStream | ( | wxInputStream & | stream | ) |

Creates a std::istream derived stream which reads from a wxInputStream.

Parameters

  stream | Stream to read from.

## ◆ ~wxStdInputStream()

virtual wxStdInputStream::~wxStdInputStream | ( |  | ) |
| virtual

Destructor.