istrstream

#include <strstrea.h>

The istrstream class supports input streams that have character arrays as a source. You must allocate a character array before constructing an istrstream object. You can use istream operators and functions on this character data. A get pointer, working in the attached strstreambuf class, advances as you extract fields from the stream’s array. Use istream::seekg to go backwards. If the get pointer reaches the end of the string (and sets the ios::eof flag), you must call clear before seekg.

Construction/Destruction — Public Members

istrstream

Constructs an istrstream object.

~istrstream

Destroys an istrstream object.

Other Functions — Public Members

rdbuf

Returns a pointer to the stream’s associated strstreambuf object.

str

Returns a character array pointer to the string stream’s contents.

Input Stream Classes

See Also   strstreambuf, streambuf, strstream, ostrstream