A class for handling file names.
A std::ostream with the ability to handle compressed files.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number.
~OFstream()=default
Destructor.
void print(Ostream &os) const
Print description of IOstream to Ostream.
~OFstreamAllocator()
Destructor.
Representation of a major/minor version number.
virtual const fileName & name() const
Return the name of the stream.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
OFstream(const fileName &pathname, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED, const bool append=false)
Construct from pathname.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
void deallocate()
Delete the stream pointer.
Output to file stream, using an OSstream.
OFstreamAllocator(const fileName &pathname, IOstream::compressionType compression=IOstream::UNCOMPRESSED, const bool append=false)
Construct from pathname.
std::ostream * allocatedPtr_
The allocated stream pointer (ofstream or ogzstream).
virtual std::ostream & stdStream()
Access to underlying std::ostream.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
OFstream Snull
Global predefined null output stream "/dev/null".
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
compressionType compression() const noexcept
Get the stream compression.