A class for handling file names.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Input from file stream, using an ISstream.
virtual void print(Ostream &os) const
Print stream description.
static const versionNumber currentVersion
The current version number (2.0)
Generic input stream using a standard (STL) stream.
IFstream & operator()() const
Return a non-const reference to const IFstream.
ISstream & get(char &c)
Raw, low-level get character function.
Representation of a major/minor version number.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
The IOstreamOption is a simple container for options an IOstream can normally have.
~IFstream()=default
Destructor.
virtual const fileName & name() const
Return the name of the stream.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
IFstream(const fileName &pathname, IOstreamOption streamOpt=IOstreamOption())
Construct from pathname.
virtual std::istream & stdStream()
Access to underlying std::istream.
A wrapped std::ifstream with possible compression handling (igzstream) that behaves much like a std::...
virtual void rewind()
Rewind the stream so that it may be read again.
ClassName("IFstream")
Declare type-name (with debug switch)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...