Rosetta 3.3
Public Member Functions | Protected Types | Protected Member Functions
utility::io::irstream Class Reference

orstream: Input stream wrapper abstract base class More...

#include <irstream.hh>

Inheritance diagram for utility::io::irstream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~irstream ()
 Destructor.
virtual operator bool () const =0
 bool conversion
virtual operator std::istream const & () const =0
 Stream conversion.
virtual operator std::istream & ()=0
 Stream conversion.
template<typename T >
irstreamoperator>> (T &t)
 Stream input.
virtual std::istream & operator>> (std_manipulator m)=0
 Stream manipulator input.
virtual void clear ()=0
 Clear the stream.
virtual void seek_beg ()=0
 Seek to the beginning.
virtual int get ()=0
 Get the next character.
virtual irstreamget (char &c)=0
 Get the next character.
virtual irstreamget (char *str, std::streamsize const count)=0
 Get the next specified number of characters.
virtual irstreamget (char *str, std::streamsize const count, char const delim)=0
 Get the next specified number of characters.
virtual irstreamget (std::string &str, std::streamsize const count)=0
 Get the next specified number of characters.
virtual irstreamget (std::string &str, std::streamsize const count, char const delim)=0
 Get the next specified number of characters.
virtual irstreamgetline (char *line, std::streamsize const count)=0
 Get the rest of the line.
virtual irstreamgetline (char *line, std::streamsize const count, char const delim)=0
 Get the rest of the line.
virtual irstreamgetline (std::string &line)=0
 Get the rest of the line.
virtual irstreamgetline (std::string &line, char const delim)=0
 Get the rest of the line.
virtual irstreamread (char *str, std::streamsize const count)=0
 Read the next specified number of characters.
virtual irstreamread (std::string &str, std::streamsize const count)=0
 Read the next specified number of characters.
virtual std::streamsize readsome (char *str, std::streamsize const count)=0
 Read the next available specified number of characters.
virtual std::streamsize readsome (std::string &str, std::streamsize const count)=0
 Read the next available specified number of characters.
virtual irstreamignore ()=0
 Skip over the next character.
virtual irstreamignore (std::streamsize const count)=0
 Skip over the next specified number of characters.
virtual irstreamignore (std::streamsize const count, char const delim)=0
 Skip over the next specified number of characters.
virtual int peek ()=0
 Returns the next character without extracting it.
virtual irstreamunget ()=0
 Put the last character read back into the stream.
virtual irstreamputback (char c)=0
 Put the last character read back into the stream and check that passed character is correct.
virtual std::istream const & operator() () const =0
 Stream access.
virtual std::istream & operator() ()=0
 Stream access.
virtual std::istream const & stream () const =0
 Stream access.
virtual std::istream & stream ()=0
 Stream access.
virtual std::streambuf * rdbuf () const =0
 Pointer to the stream buffer.
virtual bool good () const =0
 Good?
virtual bool eof () const =0
 End of file?
virtual bool fail () const =0
 Fail?
virtual bool bad () const =0
 Bad?
virtual bool compressed () const =0
 Compressed?
virtual bool uncompressed () const =0
 Uncompressed?
virtual bool gzipped () const =0
 gzipped?

Protected Types

typedef std::istream &(* std_manipulator )(std::istream &)

Protected Member Functions

 irstream ()
 Default constructor.

Detailed Description

orstream: Input stream wrapper abstract base class


Member Typedef Documentation

typedef std::istream&(* utility::io::irstream::std_manipulator)(std::istream &) [protected]

Constructor & Destructor Documentation

virtual utility::io::irstream::~irstream ( ) [inline, virtual]

Destructor.

utility::io::irstream::irstream ( ) [inline, protected]

Default constructor.


Member Function Documentation

virtual bool utility::io::irstream::bad ( ) const [pure virtual]

Bad?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual void utility::io::irstream::clear ( ) [pure virtual]

Clear the stream.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::compressed ( ) const [pure virtual]

Compressed?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::eof ( ) const [pure virtual]

End of file?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::fail ( ) const [pure virtual]

Fail?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual int utility::io::irstream::get ( ) [pure virtual]

Get the next character.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::get ( char &  c) [pure virtual]

Get the next character.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::get ( char *  str,
std::streamsize const  count 
) [pure virtual]

Get the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::get ( char *  str,
std::streamsize const  count,
char const  delim 
) [pure virtual]

Get the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::get ( std::string &  str,
std::streamsize const  count 
) [pure virtual]

Get the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::get ( std::string &  str,
std::streamsize const  count,
char const  delim 
) [pure virtual]

Get the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::getline ( std::string &  line,
char const  delim 
) [pure virtual]

Get the rest of the line.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::getline ( std::string &  line) [pure virtual]

Get the rest of the line.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::getline ( char *  line,
std::streamsize const  count 
) [pure virtual]

Get the rest of the line.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::getline ( char *  line,
std::streamsize const  count,
char const  delim 
) [pure virtual]

Get the rest of the line.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::good ( ) const [pure virtual]

Good?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::gzipped ( ) const [pure virtual]

gzipped?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::ignore ( ) [pure virtual]

Skip over the next character.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::ignore ( std::streamsize const  count) [pure virtual]

Skip over the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::ignore ( std::streamsize const  count,
char const  delim 
) [pure virtual]

Skip over the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual utility::io::irstream::operator bool ( ) const [pure virtual]

bool conversion

Implemented in utility::io::icstream, and utility::io::izstream.

virtual utility::io::irstream::operator std::istream & ( ) [pure virtual]

Stream conversion.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual utility::io::irstream::operator std::istream const & ( ) const [pure virtual]

Stream conversion.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::istream& utility::io::irstream::operator() ( ) [pure virtual]

Stream access.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::istream const& utility::io::irstream::operator() ( ) const [pure virtual]

Stream access.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::istream& utility::io::irstream::operator>> ( std_manipulator  m) [pure virtual]

Stream manipulator input.

Implemented in utility::io::icstream, and utility::io::izstream.

template<typename T >
irstream& utility::io::irstream::operator>> ( T &  t) [inline]

Stream input.

Reimplemented in utility::io::icstream, and utility::io::izstream.

References stream(), and sd::t.

virtual int utility::io::irstream::peek ( ) [pure virtual]

Returns the next character without extracting it.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::putback ( char  c) [pure virtual]

Put the last character read back into the stream and check that passed character is correct.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::streambuf* utility::io::irstream::rdbuf ( ) const [pure virtual]

Pointer to the stream buffer.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::read ( char *  str,
std::streamsize const  count 
) [pure virtual]

Read the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::read ( std::string &  str,
std::streamsize const  count 
) [pure virtual]

Read the next specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::streamsize utility::io::irstream::readsome ( char *  str,
std::streamsize const  count 
) [pure virtual]

Read the next available specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::streamsize utility::io::irstream::readsome ( std::string &  str,
std::streamsize const  count 
) [pure virtual]

Read the next available specified number of characters.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual void utility::io::irstream::seek_beg ( ) [pure virtual]

Seek to the beginning.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual std::istream const& utility::io::irstream::stream ( ) const [pure virtual]

Stream access.

Implemented in utility::io::icstream, and utility::io::izstream.

Referenced by operator>>().

virtual std::istream& utility::io::irstream::stream ( ) [pure virtual]

Stream access.

Implemented in utility::io::icstream, and utility::io::izstream.

virtual bool utility::io::irstream::uncompressed ( ) const [pure virtual]

Uncompressed?

Implemented in utility::io::icstream, and utility::io::izstream.

virtual irstream& utility::io::irstream::unget ( ) [pure virtual]

Put the last character read back into the stream.

Implemented in utility::io::icstream, and utility::io::izstream.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines