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