Input from file stream. More...
#include <OpenFOAM/IFstream.H>
Input from file stream.
Definition at line 91 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.
|
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.
ClassName | ( | "IFstream" | ) |
const fileName& name | ( | ) | const [inline, virtual]
|
Return the name of the stream.
Reimplemented from ISstream.
Definition at line 127 of file IFstream.H.
Referenced by argList::argList(), includeEntry::execute(), STARCDsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), STARCDsurfaceFormatCore::readHeader(), STARCD::readHeader(), and STARCDsurfaceFormatCore::readPoints().
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().