36template<
class... Args>
39 const std::string& text,
49 if constexpr (
sizeof...(Args))
92 if (canWriteToplevel(
"xml header"))
94 os_ <<
"<?xml version='1.0'?>" <<
nl;
101template<
class... Args>
104 const std::string& text,
108 if (canWriteToplevel(
"xml comment"))
113 if constexpr (
sizeof...(Args))
117 xmlCommentLoop(text, std::forward<Args>(
args)...);
123 os_ <<
' ' << text <<
' ';
133template<
class... Args>
140 if (openTagImpl(tagName))
142 xmlAttr(std::forward<Args>(
args)...);
149template<
class... Args>
160template<
class... Args>
168 xmlAttr(std::forward<Args>(
args)...);
175template<
class... Args>
191 const word& contentVersion,
219template<Foam::vtk::fileTag ContentType>
231template<
class Type, Foam::direction nComp,
int nTuple>
240 beginDataArray<Type, nComp, nTuple>
326template<
class... Args>
330 const std::string& v,
334 if (!canWriteAttr(
k))
return *
this;
341template<
class... Args>
349 if (!canWriteAttr(
k))
return *
this;
356template<
class... Args>
364 if (!canWriteAttr(
k))
return *
this;
371template<
class... Args>
379 if (!canWriteAttr(
k))
return *
this;
386template<
class... Args>
394 if (!canWriteAttr(
k))
return *
this;
401template<
class... Args>
405 const std::string& v,
416template<
class... Args>
431template<
class... Args>
446template<
class... Args>
461template<
class... Args>
472 return xmlAttr(std::forward<Args>(
args)...);
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
fileAttr
Some common XML attributes for vtk files.
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Strings corresponding to the vtk XML DataArray attributes.
dataArrayAttr
Some common names for XML DataArray entries.
fileTag
Some common XML tags for vtk files.
const Foam::Enum< fileTag > fileContentVersions
Version string for some vtk XML file content types.
const Foam::Enum< fileAttr > fileAttrNames
Strings corresponding to the vtk XML attributes.
const Foam::Enum< fileTag > fileTagNames
Strings corresponding to the vtk XML tags.
Ostream & indent(Ostream &os)
Indent stream.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)