A class for handling file names.
Input from file stream, using an ISstream.
~IFstreamAllocator()
Destructor.
virtual void print(Ostream &os) const
Print description of IOstream to Ostream.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number.
Generic input stream using standard (STL) streams.
IFstream & operator()() const
Return a non-const reference to const IFstream.
std::istream * allocatedPtr_
The allocated stream pointer (ifstream or igzstream).
IFstream(const fileName &pathname, streamFormat format=ASCII, versionNumber version=currentVersion)
Construct from pathname.
Representation of a major/minor version number.
A std::istream with the ability to handle compressed files.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
~IFstream()=default
Destructor.
virtual const fileName & name() const
Return the name of the stream.
versionNumber version() const noexcept
Get the stream version.
void deallocate()
Delete the stream pointer.
streamFormat
Data format (ascii | binary)
IFstreamAllocator(const fileName &pathname)
Construct from pathname.
virtual std::istream & stdStream()
Access to underlying std::istream.
IOstream::compressionType compression_
The requested compression type.
virtual void rewind()
Rewind the stream so that it may be read again.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...