Go to Overview over all GrAL packages.
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

checked_istream Class Reference

Wrapper for istream, checking successful read operation. More...

#include <checked-istream.h>

List of all members.

Public Methods

 checked_istream (std::istream *in_=0)

Friends

template<class T> checked_istream & operator>> (checked_istream &in, T &t)


Detailed Description

Wrapper for istream, checking successful read operation.

Example:

    int i,j;
    checked_istream checked_cin(&cin);
    checked_in >> in >> j;

Definition at line 18 of file checked-istream.h.


Constructor & Destructor Documentation

checked_istream::checked_istream std::istream *    in_ = 0 [inline]
 

Definition at line 22 of file checked-istream.h.


Friends And Related Function Documentation

template<class T>
checked_istream& operator>> checked_istream &    in,
T &    t
[friend]
 

Definition at line 25 of file checked-istream.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:04 2002 for Utilities by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000