OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

ISstream Class Reference

Inheritance diagram for ISstream:

Inheritance graph
[legend]
Collaboration diagram for ISstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 59 of file ISstream.H.


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 fileName & name () const
 Return the name of the stream.
virtual fileName & name ()
 Return non-const access to the name of the stream.
virtual ios_base::fmtflags flags () const
 Return flags of output stream.
ISstream & get (char &)
 Raw, low-level get character function.
ISstream & getLine (string &)
 Raw, low-level getline into a string function.
ISstream & putback (const char &)
 Raw, low-level putback character function.
virtual Istream & read (token &)
 Return next token from stream.
virtual Istream & read (char &)
 Read a character.
virtual Istream & read (word &)
 Read a word.
virtual Istream & read (string &)
virtual Istream & read (label &)
 Read a label.
virtual Istream & read (floatScalar &)
 Read a floatScalar.
virtual Istream & read (doubleScalar &)
 Read a doubleScalar.
virtual Istream & read (char *, std::streamsize)
 Read binary block.
virtual Istream & rewind ()
 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.

References IOstream::setGood(), IOstream::setOpened(), and IOstream::setState().

Here is the call graph for this function:

virtual ~ISstream (  )  [inline, virtual]

Definition at line 123 of file ISstream.H.


Member Function Documentation

istream& stream (  )  [inline, protected]

Return the stream reference.

Definition at line 79 of file ISstream.H.

Referenced by IStringStream::~IStringStream().

Here is the caller graph for this function:

const istream& stream (  )  const [inline, protected]

Return the const stream reference.

Definition at line 85 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 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 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 41 of file ISstreamI.H.

References IOstream::lineNumber_.

ISstream & getLine ( string &   )  [inline]

Raw, low-level getline into a string function.

Definition at line 55 of file ISstreamI.H.

ISstream & putback ( const char &   )  [inline]

Raw, low-level putback character function.

Definition at line 65 of file ISstreamI.H.

virtual Istream& read ( token &   )  [virtual]

Return next token from stream.

Implements Istream.

virtual Istream& read ( char &   )  [virtual]

Read a character.

Implements Istream.

virtual Istream& read ( word &   )  [virtual]

Read a word.

Implements Istream.

virtual Istream& read ( string &   )  [virtual]

Implements Istream.

virtual Istream& read ( label &   )  [virtual]

Read a label.

Implements Istream.

virtual Istream& read ( floatScalar &   )  [virtual]

Read a floatScalar.

Implements Istream.

virtual Istream& read ( doubleScalar &   )  [virtual]

Read a doubleScalar.

Implements Istream.

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

Read binary block.

Implements Istream.

virtual Istream& rewind (  )  [virtual]

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

Implements Istream.

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

Set flags of output stream.

virtual void print ( Ostream &   )  const [virtual]

Print description of IOstream to Ostream.

Reimplemented from IOstream.

Reimplemented in IFstream, and IStringStream.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd