namespace Akenti class InputStream : public ref_ptr

A InputStream object is a reference-count pointer that wraps a istream

Inheritance:


Public Methods

InputStream (istream* impl = NULL)
Constructs this object
~InputStream ()
Decrements the ref_cnt by 1, and when it goes to zero destroys the istream and this object
InputStream& operator>> (char* c)
The overloaded input operator, extracts a c-string from the input stream
InputStream& operator>> (char& c)
The overloaded input operator, extracts a character from the input stream
InputStream& operator>> (int& i)
The overloaded input operator, extracts an integer from the input stream
InputStream& operator>> (long& l)
The overloaded input operator, extracts a long integer from the input stream
InputStream& operator>> (short& s)
The overloaded input operator, extracts a short integer from the input stream
InputStream& operator>> (unsigned int& ui)
The overloaded input operator, extracts an unsigned integer from the input stream
InputStream& operator>> (unsigned long& ul)
The overloaded input operator, extracts an unsigned long integer from the input stream
InputStream& operator>> (unsigned short& us)
The overloaded input operator, extracts an unsigned short integer from the input stream
InputStream& operator>> (float& f)
The overloaded input operator, extracts a float from the input stream
InputStream& operator>> (double& d)
The overloaded input operator, extracts a double from the input stream
InputStream& operator>> (long double& ld)
The overloaded input operator, extracts a long double from the input stream
InputStream& operator>> (bool& b)
The overloaded input operator, extracts a boolean from the input stream
InputStream& operator>> (streambuf* sb)
The overloaded input operator, extracts a stream buffer from the input stream
InputStream& operator>> (string& s)
The overloaded input operator, extracts a string from the input stream

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
operator void*() const
T* get() const

Documentation

A InputStream object is a reference-count pointer that wraps a istream. Provides services indirectly from istream. Clients should not assume anything about the type of the stream wrapped in this object.
InputStream(istream* impl = NULL)
Constructs this object.
Parameters:
impl - the istream for input

~InputStream()
Decrements the ref_cnt by 1, and when it goes to zero destroys the istream and this object

InputStream& operator>>(char* c)
The overloaded input operator, extracts a c-string from the input stream.
Returns:
the input stream
Parameters:
c - the c-string

InputStream& operator>>(char& c)
The overloaded input operator, extracts a character from the input stream.
Returns:
the input stream
Parameters:
c - the character

InputStream& operator>>(int& i)
The overloaded input operator, extracts an integer from the input stream.
Returns:
the input stream
Parameters:
i - the integer

InputStream& operator>>(long& l)
The overloaded input operator, extracts a long integer from the input stream.
Returns:
the input stream
Parameters:
l - the long integer

InputStream& operator>>(short& s)
The overloaded input operator, extracts a short integer from the input stream.
Returns:
InputStream& the input stream
Parameters:
short - & s the short integer

InputStream& operator>>(unsigned int& ui)
The overloaded input operator, extracts an unsigned integer from the input stream.
Returns:
the input stream
Parameters:
ui - the unsigned integer

InputStream& operator>>(unsigned long& ul)
The overloaded input operator, extracts an unsigned long integer from the input stream.
Returns:
the input stream
Parameters:
ui - the unsigned long integer

InputStream& operator>>(unsigned short& us)
The overloaded input operator, extracts an unsigned short integer from the input stream.
Returns:
the input stream
Parameters:
us - the unsigned short integer

InputStream& operator>>(float& f)
The overloaded input operator, extracts a float from the input stream.
Returns:
the input stream
Parameters:
f - the float

InputStream& operator>>(double& d)
The overloaded input operator, extracts a double from the input stream.
Returns:
the input stream
Parameters:
d - the double

InputStream& operator>>(long double& ld)
The overloaded input operator, extracts a long double from the input stream.
Returns:
the input stream
Parameters:
ld - the long double

InputStream& operator>>(bool& b)
The overloaded input operator, extracts a boolean from the input stream.
Returns:
the input stream
Parameters:
b - the boolean

InputStream& operator>>(streambuf* sb)
The overloaded input operator, extracts a stream buffer from the input stream.
Returns:
the input stream
Parameters:
sb - the stream buffer

InputStream& operator>>(string& s)
The overloaded input operator, extracts a string from the input stream.
Returns:
the input stream
Parameters:
s - the string


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de