Encapsulated combinations of output format options. This is primarily useful when defining the output type based on some command-line arguments or dictionary contents. However, it can also be a useful alternative to using the underlying enumeration directly, since this class provides additional methods not possible with an enum. More...
#include <foamVtkOutputOptions.H>
Public Member Functions | |
| outputOptions () noexcept | |
| Default construct - XML insitu ASCII format with default precision. | |
| outputOptions (vtk::formatType fmtType) noexcept | |
| Construct with specified format and default (ASCII) precision. | |
| outputOptions (vtk::formatType fmtType, unsigned prec) noexcept | |
| Construct with specified format and (ASCII) write precision. | |
| autoPtr< formatter > | newFormatter (std::ostream &os) const |
| Return new formatter based on the selected output options. | |
| 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 | legacy () const noexcept |
| True if writer uses legacy file format. | |
| bool | xml () const noexcept |
| True if writer uses XML file format (non-legacy). | |
| bool | is_hdf () const noexcept |
| True if HDF file format was requested [ADVANCED USAGE]. | |
| bool | append () const noexcept |
| True if output format uses an append mode. | |
| bool | insitu () const noexcept |
| True if output format does not use an append mode. | |
| bool | ascii () const noexcept |
| True if output format is ASCII. | |
| unsigned | precision () const noexcept |
| Return the ASCII write precision. | |
| outputOptions & | ascii (bool on) noexcept |
| Toggle ASCII mode on/off. | |
| outputOptions & | append (bool on) noexcept |
| Toggle append mode on/off. | |
| outputOptions & | legacy (bool on) noexcept |
| Toggle legacy mode on/off. | |
| outputOptions & | precision (unsigned prec) noexcept |
| Set the write precision to be used for new ASCII formatters. | |
| std::string | description () const |
| A text description about the output option selected. | |
Encapsulated combinations of output format options. This is primarily useful when defining the output type based on some command-line arguments or dictionary contents. However, it can also be a useful alternative to using the underlying enumeration directly, since this class provides additional methods not possible with an enum.
Definition at line 54 of file foamVtkOutputOptions.H.
|
inlinenoexcept |
Default construct - XML insitu ASCII format with default precision.
Definition at line 23 of file foamVtkOutputOptionsI.H.
References Foam::noexcept.
Referenced by append(), ascii(), legacy(), and precision().

|
inlinenoexcept |
Construct with specified format and default (ASCII) precision.
Definition at line 30 of file foamVtkOutputOptionsI.H.
References IOstream::defaultPrecision(), and Foam::noexcept.

|
inlinenoexcept |
Construct with specified format and (ASCII) write precision.
Definition at line 40 of file foamVtkOutputOptionsI.H.
References Foam::noexcept.
|
inline |
Return new formatter based on the selected output options.
Definition at line 54 of file foamVtkOutputOptionsI.H.
References Foam::vtk::newFormatter(), and os().
Referenced by VTKsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), VTPsurfaceFormat< Face >::write(), and VTPsurfaceFormat< Face >::write().


|
inlinenoexcept |
The output format type.
Definition at line 62 of file foamVtkOutputOptionsI.H.
References Foam::noexcept.
Referenced by vtkWriter::vtkWriter().

|
inline |
The file extension (legacy or xml) for the given content-type.
Definition at line 69 of file foamVtkOutputOptionsI.H.
References Foam::vtk::fileExtension, Foam::vtk::legacy::fileExtension, and legacy().

|
inlinenoexcept |
True if writer uses legacy file format.
Definition at line 86 of file foamVtkOutputOptionsI.H.
References Foam::vtk::LEGACY_ASCII, Foam::vtk::LEGACY_BINARY, and Foam::noexcept.
Referenced by ext(), VTKsurfaceFormatCore::formatOptions(), VTPsurfaceFormatCore::formatOptions(), vtkWriter::vtkWriter(), and xml().

|
inlinenoexcept |
True if writer uses XML file format (non-legacy).
Definition at line 96 of file foamVtkOutputOptionsI.H.
References is_hdf(), legacy(), and Foam::noexcept.

|
inlinenoexcept |
True if HDF file format was requested [ADVANCED USAGE].
Definition at line 80 of file foamVtkOutputOptionsI.H.
References Foam::vtk::HDF_FORMAT, and Foam::noexcept.
Referenced by xml().

|
inlinenoexcept |
True if output format uses an append mode.
Definition at line 102 of file foamVtkOutputOptionsI.H.
References Foam::vtk::APPEND_BASE64, Foam::vtk::APPEND_BINARY, and Foam::noexcept.
Referenced by VTKsurfaceFormatCore::formatOptions(), and VTPsurfaceFormatCore::formatOptions().

|
inlinenoexcept |
True if output format does not use an append mode.
Definition at line 112 of file foamVtkOutputOptionsI.H.
References append(), and Foam::noexcept.

|
inlinenoexcept |
True if output format is ASCII.
Definition at line 118 of file foamVtkOutputOptionsI.H.
References Foam::noexcept.
Referenced by VTKsurfaceFormatCore::formatOptions(), VTPsurfaceFormatCore::formatOptions(), and vtkWriter::vtkWriter().

|
inlinenoexcept |
Return the ASCII write precision.
Definition at line 124 of file foamVtkOutputOptionsI.H.
References Foam::noexcept.
Referenced by VTKsurfaceFormatCore::formatOptions(), VTPsurfaceFormatCore::formatOptions(), and VTKedgeFormat::write().

|
noexcept |
Toggle ASCII mode on/off.
In XML append mode, this switches between base64 and raw binary. In XML inline mode, this switches between ASCII and base64. In legacy mode, this switches between ASCII and binary.
References outputOptions().

|
noexcept |
Toggle append mode on/off.
References outputOptions().

|
noexcept |
Toggle legacy mode on/off.
References outputOptions().

|
noexcept |
Set the write precision to be used for new ASCII formatters.
References outputOptions().

| std::string description | ( | ) | const |
A text description about the output option selected.