33 precision_(
IOstream::defaultPrecision())
43 precision_(IOstream::defaultPrecision())
105 return (!legacy() && !is_hdf());
127 return !(unsigned(fmtType_) & 0x0F);
XML append raw binary, appendRawFormatter.
autoPtr< formatter > newFormatter(std::ostream &os) const
Return new formatter based on the selected output options.
const word fileExtension
Legacy file extension ("vtk")
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
bool append() const noexcept
True if output format uses an append mode.
bool xml() const noexcept
True if writer uses XML file format (non-legacy)
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
unsigned precision() const noexcept
Return the ASCII write precision.
A class for handling words, derived from Foam::string.
Legacy raw binary, legacyRawFormatter.
bool is_hdf() const noexcept
True if HDF file format was requested [ADVANCED USAGE].
formatType
The output format type for file contents.
bool ascii() const noexcept
True if output format is ASCII.
bool insitu() const noexcept
True if output format does not use an append mode.
outputOptions() noexcept
Default construct - XML insitu ASCII format with default precision.
vtk::formatType fmt() const noexcept
The output format type.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
fileTag
Some common XML tags for vtk files.
bool legacy() const noexcept
True if writer uses legacy file format.
XML append base64, appendBase64Formatter.
Legacy ASCII, legacyAsciiFormatter.
const word & ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.