OpenFOAM logo
Open Source CFD Toolkit

ISstream Class Reference

Inheritance diagram for ISstream:

Inheritance graph
[legend]
Collaboration diagram for ISstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ISstream (istream &is, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
 Construct as wrapper around istream.
virtual ~ISstream ()
virtual const fileNamename () const
 Return the name of the stream.
virtual fileNamename ()
 Return non-const access to the name of the stream.
virtual ios_base::fmtflags flags () const
 Return flags of output stream.
ISstreamget (char &)
 Raw, low-level get character function.
ISstreamputback (const char &)
 Raw, low-level putback character function.
virtual Istreamread (token &)
 Return next token from stream.
virtual Istreamread (char &)
 Read a character.
virtual Istreamread (word &)
 Read a word.
virtual Istreamread (string &)
virtual Istreamread (label &)
 Read a label.
virtual Istreamread (floatScalar &)
 Read a floatScalar.
virtual Istreamread (doubleScalar &)
 Read a doubleScalar.
virtual Istreamread (char *, std::streamsize)
 Read binary block.
virtual Istreamrewind ()
 Rewind and return the stream so that it may be read again.
virtual ios_base::fmtflags flags (const ios_base::fmtflags flags)
 Set flags of output stream.
virtual void print (Ostream &) const
 Print description of IOstream to Ostream.

Protected Member Functions

istream & stream ()
 Return the stream reference.
const istream & stream () const
 Return the const stream reference.

Constructor & Destructor Documentation

ISstream istream &  is,
const string name,
streamFormat  format = ASCII,
versionNumber  version = currentVersion,
compressionType  compression = UNCOMPRESSED
[inline]
 

Construct as wrapper around istream.

Definition at line 97 of file ISstream.H.

virtual ~ISstream  )  [inline, virtual]
 

Definition at line 123 of file ISstream.H.


Member Function Documentation

virtual ios_base::fmtflags flags const ios_base::fmtflags  flags  )  [virtual]
 

Set flags of output stream.

virtual ios_base::fmtflags flags  )  const [virtual]
 

Return flags of output stream.

Implements IOstream.

ISstream & get char &   )  [inline]
 

Raw, low-level get character function.

Definition at line 47 of file ISstreamI.H.

virtual fileName& name  )  [inline, virtual]
 

Return non-const access to the name of the stream.

Useful to alter the stream name

Reimplemented from IOstream.

Reimplemented in IFstream.

Definition at line 144 of file ISstream.H.

virtual const fileName& name  )  const [inline, virtual]
 

Return the name of the stream.

Useful for Fstream to return the filename

Reimplemented from IOstream.

Reimplemented in IFstream.

Definition at line 135 of file ISstream.H.

virtual void print Ostream  )  const [virtual]
 

Print description of IOstream to Ostream.

Reimplemented from IOstream.

Reimplemented in IFstream, and IStringStream.

ISstream & putback const char &   )  [inline]
 

Raw, low-level putback character function.

Definition at line 61 of file ISstreamI.H.

References IOstream::setBad().

Here is the call graph for this function:

virtual Istream& read char *  ,
std::streamsize 
[virtual]
 

Read binary block.

Implements Istream.

virtual Istream& read doubleScalar  )  [virtual]
 

Read a doubleScalar.

Implements Istream.

virtual Istream& read floatScalar  )  [virtual]
 

Read a floatScalar.

Implements Istream.

virtual Istream& read label  )  [virtual]
 

Read a label.

Implements Istream.

virtual Istream& read string  )  [virtual]
 

Implements Istream.

virtual Istream& read word  )  [virtual]
 

Read a word.

Implements Istream.

virtual Istream& read char &   )  [virtual]
 

Read a character.

Implements Istream.

virtual Istream& read token  )  [virtual]
 

Return next token from stream.

Implements Istream.

virtual Istream& rewind  )  [virtual]
 

Rewind and return the stream so that it may be read again.

Implements Istream.

const istream& stream  )  const [inline, protected]
 

Return the const stream reference.

Definition at line 85 of file ISstream.H.

istream& stream  )  [inline, protected]
 

Return the stream reference.

Definition at line 79 of file ISstream.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org