Go to the documentation of this file.
43 #ifndef Foam_vtk_outputOptions_H
44 #define Foam_vtk_outputOptions_H
75 mutable unsigned precision_;
110 inline bool legacy()
const;
113 inline bool xml()
const;
116 inline bool append()
const;
119 inline bool insitu()
const;
122 inline bool ascii()
const;
Encapsulated combinations of output format options. This is primarily useful when defining the output...
string description() const
A text description about the output option selected.
A class for handling words, derived from Foam::string.
unsigned precision() const
Return the ASCII write precision.
autoPtr< formatter > newFormatter(std::ostream &os) const
Return new formatter based on the selected output options.
outputOptions()
Construct null - XML insitu ASCII format with default precision.
bool legacy() const
True if writer uses legacy file format.
formatType fmt() const
The output format type.
formatType
The output format type for file contents.
bool ascii() const
True if output format is ASCII.
bool append() const
True if output format uses an append mode.
OBJstream os(runTime.globalPath()/outputName)
fileTag
Some common XML tags for vtk files.
bool insitu() const
True if output format does not use an append mode.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bool xml() const
True if writer uses XML file format (non-legacy)
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.