OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

IFstream Class Reference

Input from file stream. More...

Inheritance diagram for IFstream:
Collaboration diagram for IFstream:

List of all members.


Public Member Functions

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

Detailed Description

Input from file stream.

Source files

Definition at line 86 of file IFstream.H.


Constructor & Destructor Documentation

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

Construct from pathname.

Definition at line 86 of file IFstream.C.

~IFstream (  ) 

Definition at line 131 of file IFstream.C.


Member Function Documentation

ClassName ( "IFstream"   ) 

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

Return the name of the stream.

Reimplemented from ISstream.

Definition at line 122 of file IFstream.H.

Referenced by Foam::parseNASCoord(), and STARCDsurfaceFormatCore::readHeader().

Here is the caller graph for this function:

fileName& name (  )  [inline, virtual]

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

Reimplemented from ISstream.

Definition at line 128 of file IFstream.H.

void print ( Ostream os  )  const [virtual]

Print description of IOstream to Ostream.

Reimplemented from ISstream.

Definition at line 137 of file IFstream.C.

Referenced by IFstream::operator()().

Here is the caller graph for this function:

Foam::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.

Definition at line 147 of file IFstream.C.

References IFstream::print().

Here is the call graph for this function:


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