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