43#ifndef Foam_vtk_outputOptions_H
44#define Foam_vtk_outputOptions_H
74 mutable unsigned precision_;
110 inline bool legacy()
const noexcept;
113 inline bool xml()
const noexcept;
116 inline bool is_hdf()
const noexcept;
119 inline bool append()
const noexcept;
122 inline bool insitu()
const noexcept;
125 inline bool ascii()
const noexcept;
128 inline unsigned precision()
const noexcept;
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.
std::string description() const
A text description about the output option selected.
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 & append(bool on) noexcept
Toggle append mode on/off.
outputOptions & legacy(bool on) noexcept
Toggle legacy mode on/off.
outputOptions() noexcept
Default construct - XML insitu ASCII format with default precision.
outputOptions & precision(unsigned prec) noexcept
Set the write precision to be used for new ASCII formatters.
outputOptions & ascii(bool on) noexcept
Toggle ASCII mode on/off.
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)
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
fileTag
Some common XML tags for vtk files.
formatType
The output format type for file contents.