Version: 2.9.4
Public Member Functions
wxFSInputStream Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/filesys.h>

Inheritance diagram for wxFSInputStream:

Detailed Description

Input stream for virtual file stream files.

The stream reads data from wxFSFile obtained from wxFileSystem. It is especially useful to allow using virtual files with other wxWidgets functions and classes working with streams, e.g. for loading images or animations from virtual files and not only physical ones.

Library:  wxBase
Category:  Streams
参照:
wxWrapperInputStream, wxFSFile
Since:
2.9.4

Public Member Functions

 wxFileInputStream (const wxString &filename, int flags=0)
 Create a stream associated with the data of the given virtual file system file.
bool IsOk () const
 Returns true if the stream is initialized and ready.

List of all members.


Member Function Documentation

bool wxFSInputStream::IsOk ( ) const [virtual]

Returns true if the stream is initialized and ready.

Reimplemented from wxStreamBase.

wxFSInputStream::wxFileInputStream ( const wxString filename,
int  flags = 0 
)

Create a stream associated with the data of the given virtual file system file.

Parameters:
filenameThe name of the input file passed to wxFileSystem::OpenFile().
flagsCombination of flags from wxFileSystemOpenFlags. wxFS_READ is implied, i.e. it is always added to the flags value.

Use wxStreamBase::IsOk() to verify if the constructor succeeded.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines