The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class istrstream
istream                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  Description
 
  The istrstream class supports input streams that have character arrays
  as a source. You must allocate a character array prior to the
  construction of an istrstream object. All the istream operators and
  functions (including seeking) can then be used on this character data.
 
  You must be aware that there is a get pointer working behind the scenes
  in the attached strstreambuf class. This pointer advances as you extract
  fields from the stream's array. The only way you can make it go
  backwards is to use the istream::seekg function. If the get pointer
  reaches the end of the string (and sets the ios::eof flag), then you
  must call clear before seekg.
 
  #include <strstrea.h>
 
  See Also
 
  strstreambuf, streambuf, strstream, ostrstream
 
  Public Members
 
  Construction/Destruction
 
  istrstream   Constructs an istrstream object.
 
  ~istrstream   Destroys an istrstream object.
 
  Other Functions
 
  rdbuf   Returns a pointer to the stream's associated strstreambuf
            object.
 
  str     Returns a character array pointer to the string stream's
            contents.
 
 
                                     -♦-