retdec
Public Member Functions | Private Attributes | List of all members
IStreamWrapper Class Reference

#include <PeLibAux.h>

Collaboration diagram for IStreamWrapper:
Collaboration graph
[legend]

Public Member Functions

 IStreamWrapper (std::istream &stream)
 
 ~IStreamWrapper ()
 
 operator std::istream & () const
 
std::istream & getIstream ()
 
 operator bool () const
 
IStreamWrapperseekg (std::streampos pos)
 
IStreamWrapperseekg (std::streamoff off, std::ios_base::seekdir way)
 
std::streampos tellg ()
 
IStreamWrapperread (char *s, std::streamsize n)
 
std::streamsize gcount () const
 
void clear (std::ios_base::iostate state=std::ios_base::goodbit)
 

Private Attributes

std::istream & _stream
 
std::streampos _pos
 
std::ios::iostate _state
 

Constructor & Destructor Documentation

◆ IStreamWrapper()

IStreamWrapper::IStreamWrapper ( std::istream &  stream)
inline

◆ ~IStreamWrapper()

IStreamWrapper::~IStreamWrapper ( )
inline

Member Function Documentation

◆ clear()

void IStreamWrapper::clear ( std::ios_base::iostate  state = std::ios_base::goodbit)
inline

◆ gcount()

std::streamsize IStreamWrapper::gcount ( ) const
inline

◆ getIstream()

std::istream& IStreamWrapper::getIstream ( )
inline

◆ operator bool()

IStreamWrapper::operator bool ( ) const
inlineexplicit

◆ operator std::istream &()

IStreamWrapper::operator std::istream & ( ) const
inline

◆ read()

IStreamWrapper& IStreamWrapper::read ( char *  s,
std::streamsize  n 
)
inline

◆ seekg() [1/2]

IStreamWrapper& IStreamWrapper::seekg ( std::streamoff  off,
std::ios_base::seekdir  way 
)
inline

◆ seekg() [2/2]

IStreamWrapper& IStreamWrapper::seekg ( std::streampos  pos)
inline

◆ tellg()

std::streampos IStreamWrapper::tellg ( )
inline

Member Data Documentation

◆ _pos

std::streampos IStreamWrapper::_pos
private

◆ _state

std::ios::iostate IStreamWrapper::_state
private

◆ _stream

std::istream& IStreamWrapper::_stream
private

The documentation for this class was generated from the following file: