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

IFstream Class Reference

Inheritance diagram for IFstream:

Inheritance graph
[legend]
Collaboration diagram for IFstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 98 of file IFstream.H.


Public Member Functions

 ClassName ("IFstream")
 IFstream (const fileName &pathname, streamFormat format=ASCII, versionNumber version=currentVersion)
 Construct from pathname.
 ~IFstream ()
const fileName & name () const
 Return the name of the stream.
fileName & name ()
 Return non-const access to the name of the stream.
virtual void print (Ostream &) const
 Print description of IOstream to Ostream.
IFstream & operator() () const
 Return a non-const reference to const IFstream.

Constructor & Destructor Documentation

IFstream ( const fileName &  pathname,
streamFormat  format = ASCII,
versionNumber  version = currentVersion 
)

Construct from pathname.

~IFstream (  ) 


Member Function Documentation

ClassName ( "IFstream"   ) 

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

Return the name of the stream.

Reimplemented from ISstream.

Definition at line 134 of file IFstream.H.

fileName& name (  )  [inline, virtual]

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

Reimplemented from ISstream.

Definition at line 140 of file IFstream.H.

virtual void print ( Ostream &   )  const [virtual]

Print description of IOstream to Ostream.

Reimplemented from ISstream.

IFstream& operator() (  )  const

Return a non-const reference to const IFstream.

Needed for read-constructors where the stream argument is temporary: e.g. thing thisThing(IFstream("thingFileName")());

Reimplemented from Istream.


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