15 #ifndef INCLUDED_utility_io_irstream_hh
16 #define INCLUDED_utility_io_irstream_hh
40 typedef std::istream & (*std_manipulator)( std::istream & );
82 operator bool()
const = 0;
87 operator std::istream
const &()
const = 0;
92 operator std::istream &() = 0;
99 template<
typename T >
145 get(
char * str, std::streamsize
const count ) = 0;
151 get(
char * str, std::streamsize
const count,
char const delim ) = 0;
157 get( std::string & str, std::streamsize
const count ) = 0;
163 get( std::string & str, std::streamsize
const count,
char const delim ) = 0;
186 getline( std::string &
line,
char const delim ) = 0;
192 read(
char * str, std::streamsize
const count ) = 0;
198 read( std::string & str, std::streamsize
const count ) = 0;
210 readsome( std::string & str, std::streamsize
const count ) = 0;
228 ignore( std::streamsize
const count,
char const delim ) = 0;
334 #endif // INCLUDED_utility_io_irstream_HH
virtual std::istream const & stream() const =0
Stream access.
virtual bool gzipped() const =0
gzipped?
virtual irstream & unget()=0
Put the last character read back into the stream.
virtual bool compressed() const =0
Compressed?
virtual void seek_beg()=0
Seek to the beginning.
virtual void clear()=0
Clear the stream.
virtual std::streambuf * rdbuf() const =0
Pointer to the stream buffer.
orstream: Input stream wrapper abstract base class
virtual bool uncompressed() const =0
Uncompressed?
virtual irstream & putback(char c)=0
Put the last character read back into the stream and check that passed character is correct...
virtual ~irstream()
Destructor.
irstream()
Default constructor.
std::istream &(* std_manipulator)(std::istream &)
virtual bool good() const =0
Good?
virtual bool eof() const =0
End of file?
virtual irstream & getline(char *line, std::streamsize const count)=0
Get the rest of the line.
virtual std::streamsize readsome(char *str, std::streamsize const count)=0
Read the next available specified number of characters.
utility::io::irstream forward declarations
virtual irstream & ignore()=0
Skip over the next character.
irstream & operator=(irstream const &)
Copy assignment: Undefined.
virtual bool bad() const =0
Bad?
virtual int peek()=0
Returns the next character without extracting it.
virtual irstream & read(char *str, std::streamsize const count)=0
Read the next specified number of characters.
virtual bool fail() const =0
Fail?
irstream & operator>>(T &t)
Stream input.
virtual std::istream const & operator()() const =0
Stream access.