15 #ifndef INCLUDED_utility_io_icstream_hh
16 #define INCLUDED_utility_io_icstream_hh
71 operator std::istream
const &()
const
79 operator std::istream &()
89 template<
typename T >
117 stream().seekg( std::ios_base::beg );
144 get(
char * str, std::streamsize
const count )
154 get(
char * str, std::streamsize
const count,
char const delim )
164 get( std::string & str, std::streamsize
const count )
166 char * cp =
new char[
count ];
177 get( std::string & str, std::streamsize
const count,
char const delim )
179 char * cp =
new char[
count ];
192 stream().getline( line, count );
202 stream().getline( line, count, delim );
232 stream().read( str, count );
242 char * cp =
new char[
count ];
243 stream().read( cp, count );
255 return stream().readsome( str, count );
264 char * cp =
new char[
count ];
265 std::streamsize
const n_chars =
stream().readsome( cp, count );
297 stream().ignore( count, delim );
478 #endif // INCLUDED_utility_io_icstream_HH
bool gzipped() const
gzipped?
icstream & getline(char *line, std::streamsize const count)
Get the rest of the line.
std::istream & i_stream_
Input stream reference.
icstream & ignore(std::streamsize const count)
Skip over the next specified number of characters.
icstream & ignore()
Skip over the next character.
std::istream & getline(std::istream &stream, Fstring &s)
Get Line from Stream.
icstream & ignore(std::streamsize const count, char const delim)
Skip over the next specified number of characters.
void seek_beg()
Seek to the beginning.
icstream cin(std::cin)
Wrapper around std::cin.
Input stream wrapper abstract base class.
icstream(std::istream &i_stream_a)
Constructor.
std::istream & stream()
Stream access.
orstream: Input stream wrapper abstract base class
bool compressed() const
Compressed?
bool eof() const
End of file?
std::istream &(* std_manipulator)(std::istream &)
int peek()
Returns the next character without extracting it.
std::streamsize readsome(std::string &str, std::streamsize const count)
Read the next available specified number of characters.
virtual ~icstream()
Destructor.
icstream & operator>>(T &t)
Stream input: Override to preserve type of return value.
std::istream const & stream() const
Stream access.
icstream & getline(char *line, std::streamsize const count, char const delim)
Get the rest of the line.
icstream: Input channel stream wrapper class
std::streambuf * rdbuf() const
Pointer to the stream buffer.
utility::io::icstream forward declarations
icstream & unget()
Put the last character read back into the stream.
icstream & getline(std::string &line)
Get the rest of the line.
void clear()
Clear the stream.
std::istream const & operator()() const
Stream access.
icstream & getline(std::string &line, char const delim)
Get the rest of the line.
bool uncompressed() const
Uncompressed?
icstream & putback(char c)
Put the last character read back into the stream and check that passed character is correct...
icstream & read(std::string &str, std::streamsize const count)
Read the next specified number of characters.
std::streamsize readsome(char *str, std::streamsize const count)
Read the next available specified number of characters.
icstream & read(char *str, std::streamsize const count)
Read the next specified number of characters.