38 #ifndef Foam_OFstream_H 39 #define Foam_OFstream_H 137 virtual const std::ostream&
stdStream()
const;
151 #ifdef Foam_IOstream_extras 174 extern OFstream
Snull;
virtual const fileName & name() const
Get the name of the output serial stream. (eg, the name of the Fstream file name) ...
Generic output stream using a standard (STL) stream.
A wrapped std::ofstream with possible compression handling (ogzstream) that behaves much like a std::...
A class for handling file names.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
~OFstream()
Destructor. Possibly invokes an atomic rename (preference defined during construction) ...
Output to file stream, using an OSstream.
OFstream Snull
Global predefined null output stream "/dev/null".
A simple container for options an IOstream can normally have.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Default construct (ASCII, UNCOMPRESSED, currentVersion) or construct with format, compression...
atomicType
Atomic operations (output)
virtual void rewind()
Rewind the stream so that it may be written again. Reopens the file (truncation)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
ClassName("OFstream")
Declare type-name (with debug switch)
OBJstream os(runTime.globalPath()/outputName)
appendType
File appending (NON_APPEND | APPEND)
OFstream(std::nullptr_t)
Construct a null output file stream.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
Macro definitions for declaring ClassName(), NamespaceName(), etc.
streamFormat
Data format (ascii | binary)
void print(Ostream &os) const
Print stream description.