FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

IFstream Class Reference

Input from file stream. More...

#include <OpenFOAM/IFstream.H>


Detailed Description

Input from file stream.

Source files

Definition at line 91 of file IFstream.H.

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

Definition at line 94 of file IFstream.C.

References Foam::endl(), and Foam::Info.

~IFstream (  )

Definition at line 139 of file IFstream.C.


Member Function Documentation

ClassName ( "IFstream"    )
const fileName& name (  ) const [inline, virtual]
fileName& name (  ) [inline, virtual]

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

Reimplemented from ISstream.

Definition at line 133 of file IFstream.H.

void print ( Ostream &   os  ) const [virtual]

Print description of IOstream to Ostream.

Reimplemented from ISstream.

Definition at line 145 of file IFstream.C.

References ISstream::print().

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 155 of file IFstream.C.

References Foam::exit(), IOerror::exit(), Foam::FatalIOError, FatalIOErrorIn, and Foam::isFile().


The documentation for this class was generated from the following files: