Abstract class for a VTK output stream formatter. More...
#include <foamVtkFormatter.H>


Public Types | |
| enum | quoteChar : char { DOUBLE_QUOTE = '\"' , SINGLE_QUOTE = '\'' } |
| Quoting for XML attributes. More... | |
| typedef uint64_t | headerType |
| The header data is vtk UInt64. | |
Public Member Functions | |
| virtual | ~formatter ()=default |
| Destructor. | |
| std::ostream & | os () noexcept |
| Access to the underlying output stream. | |
| virtual const vtk::outputOptions & | opts () const =0 |
| The format-type / output options. | |
| virtual const char * | name () const =0 |
| Name for the XML output type or the legacy output type. | |
| virtual const char * | encoding () const =0 |
| Name for the XML append encoding. | |
| void | quoting (quoteChar quote) noexcept |
| Change quoting char for XML attributes (default: SINGLE_QUOTE). | |
| virtual uint64_t | offset (const uint64_t numbytes) |
| Increase the append data offset by numbytes and sizeof(uint64_t). | |
| virtual std::size_t | encodedLength (std::size_t n) const |
| The encoded length for binary output is pass-through. | |
| virtual bool | writeSize (const uint64_t numbytes)=0 |
| Write leading size for binary output. | |
| virtual void | write (const uint8_t val)=0 |
| virtual void | write (const label val)=0 |
| virtual void | write (const float val)=0 |
| virtual void | write (const double val)=0 |
| virtual void | flush ()=0 |
| Flush encoding, write newline etc. | |
| void | indent () |
| Add indenting according to the current XML tag depth. | |
| void | indent (label n) |
| Add indenting of n spaces. | |
| formatter & | xmlHeader () |
| Write XML header. | |
| template<class... Args> | |
| formatter & | xmlComment (const std::string &text, Args &&... args) |
| Write XML comment (at the current indentation level). | |
| template<class... Args> | |
| formatter & | openTag (const word &tagName, Args &&... args) |
| Start an XML tag, optionally with attributes. | |
| template<class... Args> | |
| formatter & | openTag (vtk::fileTag t, Args &&... args) |
| Start an XML tag, optionally with attributes. | |
| formatter & | closeTag (const bool isEmpty=false) |
| Finish an XML tag, optional as an empty container. | |
| formatter & | endTag (const word &tagName=word::null) |
| An end XML tag, optional with sanity check. | |
| virtual formatter & | endTag (vtk::fileTag t) |
| An end XML tag with sanity check. | |
| template<class... Args> | |
| formatter & | tag (const word &t, Args &&... args) |
| Write XML tag without any attributes. Combines openTag/closeTag. | |
| template<class... Args> | |
| formatter & | tag (vtk::fileTag t, Args &&... args) |
| Write XML tag without any attributes. Combines openTag/closeTag. | |
| formatter & | beginVTKFile (const word &contentType, const word &contentVersion, const bool leaveOpen=false) |
| Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself. | |
| formatter & | beginVTKFile (vtk::fileTag contentType, const word &contentVersion, const bool leaveOpen=false) |
| Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself. | |
| formatter & | beginVTKFile (vtk::fileTag contentType, const bool leaveOpen=false) |
| Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself. | |
| template<vtk::fileTag ContentType> | |
| formatter & | beginVTKFile (bool leaveOpen=false) |
| Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself. | |
| formatter & | beginAppendedData () |
| Add a "AppendedData" XML tag with the current encoding and output the requisite '_' prefix. | |
| formatter & | beginBlock (label index, std::string name="") |
| Begin "Block" XML section. | |
| formatter & | endBlock () |
| End "Block" XML section. | |
| formatter & | beginPiece (label index, std::string name="") |
| Begin "Piece" XML section. | |
| virtual formatter & | endPiece () |
| End "Piece" XML section. | |
| formatter & | DataSet (label index, std::string file="", bool autoName=true) |
| Insert a single "DataSet" XML entry tag. | |
| formatter & | DataSet (label index, std::string file, std::string name) |
| Insert a single "DataSet" XML entry tag. | |
| template<class Type, direction nComp = 1, int nTuple = 0> | |
| formatter & | beginDataArray (const word &dataName, uint64_t payLoad=npos, bool leaveOpen=false) |
| Begin "DataArray" XML section. | |
| template<class Type, direction nComp = 1, int nTuple = 0> | |
| formatter & | beginDataArray (const vtk::dataArrayAttr &dataName, uint64_t payLoad=npos, bool leaveOpen=false) |
| Begin "DataArray" XML section. | |
| virtual formatter & | endDataArray () |
| End "DataArray" XML section. | |
| template<class Type, direction nComp = 1, int nTuple = 0> | |
| formatter & | PDataArray (const word &dataName) |
| Insert a single "PDataArray" XML entry tag. | |
| formatter & | beginFieldData () |
| Begin "FieldData" XML section. | |
| formatter & | beginCellData () |
| Begin "CellData" XML section. | |
| formatter & | beginPointData () |
| Begin "PointData" XML section. | |
| virtual formatter & | endFieldData () |
| End "FieldData" XML section. | |
| virtual formatter & | endCellData () |
| End "CellData" XML section. | |
| virtual formatter & | endPointData () |
| End "PointData" XML section. | |
| formatter & | endAppendedData () |
| End "AppendedData" XML section. | |
| virtual formatter & | endVTKFile () |
| End "VTKFile" XML section. | |
| formatter & | writeTimeValue (scalar timeValue) |
| Emit "TimeValue" for FieldData (name as per Catalyst output). | |
| template<class... Args> | |
| formatter & | xmlAttr (const word &k, const std::string &v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const word &k, const int32_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const word &k, const int64_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const word &k, const uint64_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const word &k, const scalar v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const vtk::fileAttr &k, const std::string &v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const vtk::fileAttr &k, const int32_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const vtk::fileAttr &k, const int64_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const vtk::fileAttr &k, const uint64_t v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class... Args> | |
| formatter & | xmlAttr (const vtk::fileAttr &k, const scalar v, Args &&... args) |
| Pair-wise write of XML key/value attributes. | |
| template<class Type, direction nComp = 1, int nTuple = 0> | |
| formatter & | openDataArray (const word &dataName) |
| Open "DataArray" XML tag and leave open (requires a closeTag). | |
| template<class Type, direction nComp = 1, int nTuple = 0> | |
| formatter & | openDataArray (const vtk::dataArrayAttr &dataName) |
| Open "DataArray" XML tag and leave open (requires a closeTag). | |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlComment (const std::string &text, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | openTag (const word &tagName, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | openTag (vtk::fileTag t, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | tag (const word &t, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | tag (vtk::fileTag t, Args &&... args) |
| template<Foam::vtk::fileTag ContentType> | |
| Foam::vtk::formatter & | beginVTKFile (bool leaveOpen) |
| template<class Type, Foam::direction nComp, int nTuple> | |
| Foam::vtk::formatter & | beginDataArray (const vtk::dataArrayAttr &dataName, uint64_t payLoad, bool leaveOpen) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const word &k, const std::string &v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const word &k, const int32_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const word &k, const int64_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const word &k, const uint64_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const word &k, const scalar v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const vtk::fileAttr &k, const std::string &v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const vtk::fileAttr &k, const int32_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const vtk::fileAttr &k, const int64_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const vtk::fileAttr &k, const uint64_t v, Args &&... args) |
| template<class... Args> | |
| Foam::vtk::formatter & | xmlAttr (const vtk::fileAttr &k, const scalar v, Args &&... args) |
Static Public Attributes | |
| static constexpr uint64_t | npos = uint64_t(-1) |
| Out of range position or size. | |
Protected Member Functions | |
| bool | canWriteAttr (const word &k) const |
| Can write XML key/value attribute pair when inside a tag. Emit warning and return false if this condition is not met. | |
| bool | canWriteToplevel (const char *what) const |
| Can write tag-like top-level content (eg, comment, ...) when not already inside a tag. Emit warning and return false if this condition is not met. | |
| template<class Type> | |
| void | writeAttr (const word &k, const Type &v) |
| Write XML key/value attribute pair (implementation). | |
| formatter & | xmlAttr () |
| No-op write XML attribute (for templating code). | |
| template<class... Args> | |
| void | xmlCommentLoop (const std::string &text, Args &&... args) |
| Loop/output XML comments. | |
| bool | openTagImpl (const word &tagName) |
| Open XML tag (implementation), checking if not already inside another tag. Emit warning and return false if this condition is not met. | |
| formatter (std::ostream &os) | |
| Construct and attach to an output stream. | |
Protected Attributes | |
| std::ostream & | os_ |
| The output stream for the formatter. | |
| DynamicList< word > | xmlTags_ |
| LIFO stack of current XML tags. | |
| bool | inTag_ |
| Tag open/closed/ended state. | |
| char | quote_ |
| Quoting character for XML attributes. | |
Abstract class for a VTK output stream formatter.
Includes simple support for writing XML elements. By default uses single-quoting for XML attributes.
Definition at line 66 of file foamVtkFormatter.H.
| typedef uint64_t headerType |
The header data is vtk UInt64.
Definition at line 164 of file foamVtkFormatter.H.
| enum quoteChar : char |
Quoting for XML attributes.
| Enumerator | |
|---|---|
| DOUBLE_QUOTE | Double-quote XML attributes. |
| SINGLE_QUOTE | Single-quote XML attributes. |
Definition at line 73 of file foamVtkFormatter.H.
|
inlineexplicitprotected |
Construct and attach to an output stream.
Definition at line 51 of file foamVtkFormatterI.H.
References inTag_, os(), os_, quote_, SINGLE_QUOTE, and xmlTags_.
Referenced by beginAppendedData(), beginBlock(), beginDataArray(), beginDataArray(), beginPiece(), beginVTKFile(), beginVTKFile(), canWriteToplevel(), closeTag(), DataSet(), DataSet(), endAppendedData(), legacyRawFormatter::endCellData(), legacyRawFormatter::endDataArray(), legacyRawFormatter::endFieldData(), legacyRawFormatter::endPiece(), legacyRawFormatter::endPointData(), endTag(), legacyRawFormatter::endTag(), legacyRawFormatter::endVTKFile(), flush(), openDataArray(), openDataArray(), openTag(), openTag(), PDataArray(), tag(), tag(), writeTimeValue(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), and xmlComment().


|
virtualdefault |
Destructor.
References Foam::noexcept.
|
protected |
Can write XML key/value attribute pair when inside a tag. Emit warning and return false if this condition is not met.
References k.
Referenced by xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), and xmlAttr().

|
protected |
Can write tag-like top-level content (eg, comment, ...) when not already inside a tag. Emit warning and return false if this condition is not met.
References args, formatter(), and k.
Referenced by xmlComment(), and xmlHeader().


|
inlineprotected |
Write XML key/value attribute pair (implementation).
Definition at line 313 of file foamVtkFormatterI.H.
References k, os_, and quote_.
Referenced by xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), and xmlAttr().

|
inlineprotected |
No-op write XML attribute (for templating code).
Definition at line 23 of file foamVtkFormatterI.H.
Referenced by openTag(), tag(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), xmlAttr(), and xmlAttr().

|
inlineprotected |
Loop/output XML comments.
Definition at line 30 of file foamVtkFormatterI.H.
References args, Foam::indent(), Foam::nl, os_, and xmlCommentLoop().
Referenced by xmlComment(), and xmlCommentLoop().


|
protected |
|
inlinenoexcept |
Access to the underlying output stream.
Definition at line 62 of file foamVtkFormatterI.H.
References Foam::noexcept, and os_.
Referenced by appendBase64Formatter::appendBase64Formatter(), appendRawFormatter::appendRawFormatter(), asciiFormatter::asciiFormatter(), asciiFormatter::asciiFormatter(), base64Formatter::base64Formatter(), Foam::vtk::legacy::beginCellData(), Foam::vtk::legacy::beginPointData(), Foam::vtk::legacy::doubleField(), Foam::vtk::legacy::fieldData(), Foam::vtk::legacy::floatField(), foamVtkBase64Layer::foamVtkBase64Layer(), formatter(), Foam::vtk::legacy::intField(), legacyAsciiFormatter::legacyAsciiFormatter(), legacyAsciiFormatter::legacyAsciiFormatter(), legacyRawFormatter::legacyRawFormatter(), and openTagImpl().

|
pure virtual |
The format-type / output options.
Implemented in appendBase64Formatter, appendRawFormatter, asciiFormatter, base64Formatter, legacyAsciiFormatter, and legacyRawFormatter.
References opts().
Referenced by opts().


|
pure virtual |
Name for the XML output type or the legacy output type.
Implemented in appendBase64Formatter, appendRawFormatter, asciiFormatter, base64Formatter, legacyAsciiFormatter, and legacyRawFormatter.
References name().
Referenced by beginBlock(), beginPiece(), DataSet(), and name().


|
pure virtual |
Name for the XML append encoding.
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, legacyAsciiFormatter, and legacyRawFormatter.
References encoding().
Referenced by encoding().


|
noexcept |
Change quoting char for XML attributes (default: SINGLE_QUOTE).
References Foam::noexcept, and quoting().
Referenced by quoting().


|
virtual |
Increase the append data offset by numbytes and sizeof(uint64_t).
The additional (uint64_t) size information is consistent with writeSize()
Reimplemented in appendBase64Formatter, and appendRawFormatter.
References offset().
Referenced by offset().


|
virtual |
The encoded length for binary output is pass-through.
Reimplemented in asciiFormatter, and foamVtkBase64Layer.
References encodedLength(), and n.
Referenced by encodedLength().


|
pure virtual |
Write leading size for binary output.
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, and legacyRawFormatter.
References writeSize().
Referenced by writeSize().


|
pure virtual |
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, and legacyRawFormatter.
References write().
Referenced by write(), write(), write(), write(), and Foam::vtk::legacy::writeTimeValue().


|
pure virtual |
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, and legacyRawFormatter.
References write().

|
pure virtual |
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, and legacyRawFormatter.
References write().

|
pure virtual |
Implemented in appendRawFormatter, asciiFormatter, foamVtkBase64Layer, and legacyRawFormatter.
References write().

|
pure virtual |
Flush encoding, write newline etc.
Implemented in appendRawFormatter, asciiFormatter, base64Formatter, foamVtkBase64Layer, and legacyRawFormatter.
References flush(), formatter(), indent(), n, and xmlHeader().
Referenced by flush(), and Foam::vtk::legacy::writeTimeValue().


|
inline |
Add indenting according to the current XML tag depth.
Two spaces per depth.
Definition at line 68 of file foamVtkFormatterI.H.
References Foam::indent(), and xmlTags_.
Referenced by flush().


|
inline |
Add indenting of n spaces.
Definition at line 74 of file foamVtkFormatterI.H.
|
inline |
Write XML header.
Definition at line 83 of file foamVtkFormatterI.H.
References canWriteToplevel(), Foam::nl, and os_.
Referenced by flush().


|
inline |
Write XML comment (at the current indentation level).
References args, formatter(), and xmlComment().
Referenced by xmlComment().


Start an XML tag, optionally with attributes.
References args, formatter(), and openTag().
Referenced by openTag(), and openTag().


|
inline |
Start an XML tag, optionally with attributes.
References args, formatter(), and openTag().

| formatter & closeTag | ( | const bool | isEmpty = false | ) |
Finish an XML tag, optional as an empty container.
Always adds a trailing newline.
References closeTag(), and formatter().
Referenced by closeTag(), and tag().


| formatter & endTag | ( | const word & | tagName = word::null | ) |
An end XML tag, optional with sanity check.
Always adds a trailing newline.
References endTag(), and formatter().
Referenced by endBlock(), endCellData(), endDataArray(), endFieldData(), endPiece(), endPointData(), endTag(), endTag(), and endVTKFile().


|
inlinevirtual |
An end XML tag with sanity check.
Always adds a trailing newline.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 262 of file foamVtkFormatterI.H.
References endTag(), and Foam::vtk::fileTagNames.

Write XML tag without any attributes. Combines openTag/closeTag.
References args, formatter(), and tag().
Referenced by beginCellData(), beginFieldData(), beginPointData(), tag(), and tag().


|
inline |
Write XML tag without any attributes. Combines openTag/closeTag.
References args, formatter(), and tag().

| formatter & beginVTKFile | ( | const word & | contentType, |
| const word & | contentVersion, | ||
| const bool | leaveOpen = false ) |
Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself.
| leaveOpen | Leave tag open for additional attributes. |
References beginVTKFile(), and formatter().
Referenced by beginVTKFile(), beginVTKFile(), beginVTKFile(), beginVTKFile(), and beginVTKFile().


|
inline |
Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself.
| leaveOpen | Leave tag open for additional attributes. |
Definition at line 181 of file foamVtkFormatterI.H.
References beginVTKFile(), and Foam::vtk::fileTagNames.

|
inline |
Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself.
| leaveOpen | Leave tag open for additional attributes. |
Definition at line 197 of file foamVtkFormatterI.H.
References beginVTKFile(), Foam::vtk::fileContentVersions, and Foam::vtk::fileTagNames.

|
inline |
Add a "VTKFile" XML tag for contentType, followed by a tag for the contentType itself.
| leaveOpen | Leave tag open for additional attributes. |
References beginVTKFile(), and formatter().

| formatter & beginAppendedData | ( | ) |
Add a "AppendedData" XML tag with the current encoding and output the requisite '_' prefix.
References beginAppendedData(), and formatter().
Referenced by beginAppendedData().


| formatter & beginBlock | ( | label | index, |
| std::string | name = "" ) |
Begin "Block" XML section.
| index | The index of the block |
| name | The name of the block (ignored if empty) |
References beginBlock(), endBlock(), formatter(), and name().
Referenced by beginBlock().


|
inline |
End "Block" XML section.
Definition at line 292 of file foamVtkFormatterI.H.
References Foam::vtk::BLOCK, and endTag().
Referenced by beginBlock().


| formatter & beginPiece | ( | label | index, |
| std::string | name = "" ) |
Begin "Piece" XML section.
| index | The index of the piece |
| name | The name of the piece (ignored if empty) |
References beginPiece(), endPiece(), formatter(), and name().
Referenced by beginPiece().


|
inlinevirtual |
End "Piece" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 298 of file foamVtkFormatterI.H.
References endTag(), and Foam::vtk::PIECE.
Referenced by beginPiece().


| formatter & DataSet | ( | label | index, |
| std::string | file = "", | ||
| bool | autoName = true ) |
Insert a single "DataSet" XML entry tag.
| index | The index of the DataSet |
| file | The file name for the data (ignored if empty) |
| autoName | The name for the data extracted from the file name (without extension) |
References DataSet(), and formatter().
Referenced by DataSet(), and DataSet().


| formatter & DataSet | ( | label | index, |
| std::string | file, | ||
| std::string | name ) |
Insert a single "DataSet" XML entry tag.
| index | The index of the DataSet |
| file | The file name for the data (ignored if empty) |
| name | The name for the dataset |
References DataSet(), formatter(), and name().

| formatter & beginDataArray | ( | const word & | dataName, |
| uint64_t | payLoad = npos, | ||
| bool | leaveOpen = false ) |
Begin "DataArray" XML section.
| dataName | The name of the DataArray |
| payLoad | Additional payLoad information to increment the offset for an append formatter and add the "offset" attribute accordingly. |
| leaveOpen | Leave tag open for additional attributes. |
References beginDataArray(), formatter(), and npos.
Referenced by beginDataArray(), beginDataArray(), beginDataArray(), openDataArray(), and openDataArray().


|
inline |
Begin "DataArray" XML section.
| dataName | The name of the DataArray as an enumeration |
| payLoad | Additional payLoad information to increment the offset for an append formatter and add the "offset" attribute accordingly. |
| leaveOpen | Leave tag open for additional attributes. |
References beginDataArray(), endDataArray(), formatter(), and npos.

|
inlinevirtual |
End "DataArray" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 286 of file foamVtkFormatterI.H.
References Foam::vtk::DATA_ARRAY, and endTag().
Referenced by beginDataArray().


| formatter & PDataArray | ( | const word & | dataName | ) |
Insert a single "PDataArray" XML entry tag.
For some entries, the name is optional.
References beginCellData(), beginFieldData(), beginPointData(), endCellData(), endFieldData(), endPointData(), formatter(), and PDataArray().
Referenced by PDataArray().


|
inline |
Begin "FieldData" XML section.
Definition at line 254 of file foamVtkFormatterI.H.
References Foam::vtk::FIELD_DATA, and tag().
Referenced by PDataArray().


|
inline |
Begin "CellData" XML section.
Definition at line 242 of file foamVtkFormatterI.H.
References Foam::vtk::CELL_DATA, and tag().
Referenced by PDataArray().


|
inline |
Begin "PointData" XML section.
Definition at line 248 of file foamVtkFormatterI.H.
References Foam::vtk::POINT_DATA, and tag().
Referenced by PDataArray().


|
inlinevirtual |
End "FieldData" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 280 of file foamVtkFormatterI.H.
References endTag(), and Foam::vtk::FIELD_DATA.
Referenced by PDataArray().


|
inlinevirtual |
End "CellData" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 268 of file foamVtkFormatterI.H.
References Foam::vtk::CELL_DATA, and endTag().
Referenced by PDataArray().


|
inlinevirtual |
End "PointData" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 274 of file foamVtkFormatterI.H.
References endTag(), and Foam::vtk::POINT_DATA.
Referenced by PDataArray().


| formatter & endAppendedData | ( | ) |
End "AppendedData" XML section.
References endAppendedData(), endVTKFile(), and formatter().
Referenced by endAppendedData().


|
inlinevirtual |
End "VTKFile" XML section.
Reimplemented in legacyAsciiFormatter, and legacyRawFormatter.
Definition at line 304 of file foamVtkFormatterI.H.
References endTag(), and Foam::vtk::VTK_FILE.
Referenced by endAppendedData().


| formatter & writeTimeValue | ( | scalar | timeValue | ) |
Emit "TimeValue" for FieldData (name as per Catalyst output).
References formatter(), and writeTimeValue().
Referenced by writeTimeValue().


|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Pair-wise write of XML key/value attributes.
References args, formatter(), k, and xmlAttr().

|
inline |
Open "DataArray" XML tag and leave open (requires a closeTag).
Definition at line 700 of file foamVtkFormatter.H.
References beginDataArray(), formatter(), npos, and openDataArray().
Referenced by openDataArray().


|
inline |
Open "DataArray" XML tag and leave open (requires a closeTag).
Definition at line 714 of file foamVtkFormatter.H.
References beginDataArray(), formatter(), and npos.

|
inline |
Definition at line 95 of file foamVtkFormatterI.H.
References args, canWriteToplevel(), Foam::indent(), Foam::nl, os_, and xmlCommentLoop().

|
inline |
Definition at line 127 of file foamVtkFormatterI.H.
References args, openTagImpl(), and xmlAttr().

|
inline |
Definition at line 143 of file foamVtkFormatterI.H.
References args, Foam::vtk::fileTagNames, and openTag().

|
inline |
Definition at line 154 of file foamVtkFormatterI.H.
References args, closeTag(), openTagImpl(), and xmlAttr().

|
inline |
Definition at line 169 of file foamVtkFormatterI.H.
References args, Foam::vtk::fileTagNames, and tag().

|
inline |
Definition at line 213 of file foamVtkFormatterI.H.
References beginVTKFile(), Foam::vtk::fileContentVersions, and Foam::vtk::fileTagNames.

|
inline |
Definition at line 225 of file foamVtkFormatterI.H.
References beginDataArray(), and Foam::vtk::dataArrayAttrNames.

|
inline |
Definition at line 320 of file foamVtkFormatterI.H.
References args, canWriteAttr(), k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 335 of file foamVtkFormatterI.H.
References args, canWriteAttr(), k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 350 of file foamVtkFormatterI.H.
References args, canWriteAttr(), k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 365 of file foamVtkFormatterI.H.
References args, canWriteAttr(), k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 380 of file foamVtkFormatterI.H.
References args, canWriteAttr(), k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 395 of file foamVtkFormatterI.H.
References args, canWriteAttr(), Foam::vtk::fileAttrNames, k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 410 of file foamVtkFormatterI.H.
References args, canWriteAttr(), Foam::vtk::fileAttrNames, k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 425 of file foamVtkFormatterI.H.
References args, canWriteAttr(), Foam::vtk::fileAttrNames, k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 440 of file foamVtkFormatterI.H.
References args, canWriteAttr(), Foam::vtk::fileAttrNames, k, writeAttr(), and xmlAttr().

|
inline |
Definition at line 455 of file foamVtkFormatterI.H.
References args, canWriteAttr(), Foam::vtk::fileAttrNames, k, writeAttr(), and xmlAttr().

|
protected |
The output stream for the formatter.
Definition at line 87 of file foamVtkFormatter.H.
Referenced by formatter(), indent(), os(), writeAttr(), xmlComment(), xmlCommentLoop(), and xmlHeader().
|
protected |
LIFO stack of current XML tags.
Definition at line 92 of file foamVtkFormatter.H.
Referenced by formatter(), and indent().
|
mutableprotected |
Tag open/closed/ended state.
Definition at line 97 of file foamVtkFormatter.H.
Referenced by formatter().
|
protected |
Quoting character for XML attributes.
Definition at line 102 of file foamVtkFormatter.H.
Referenced by formatter(), and writeAttr().
|
staticconstexpr |
Out of range position or size.
Definition at line 169 of file foamVtkFormatter.H.
Referenced by beginDataArray(), beginDataArray(), openDataArray(), and openDataArray().