40template<
class... Args>
43 const std::string& text,
53 xmlCommentLoop(std::forward<Args>(
args)...);
93 if (canWriteToplevel(
"xml header"))
95 os_ <<
"<?xml version='1.0'?>" <<
nl;
102template<
class... Args>
105 const std::string& text,
109 if (canWriteToplevel(
"xml comment"))
118 xmlCommentLoop(text, std::forward<Args>(
args)...);
124 os_ <<
' ' << text <<
' ';
134template<
class... Args>
141 if (openTagImpl(tagName))
143 xmlAttr(std::forward<Args>(
args)...);
150template<
class... Args>
161template<
class... Args>
169 xmlAttr(std::forward<Args>(
args)...);
176template<
class... Args>
192 const word& contentVersion,
220template<Foam::vtk::fileTag ContentType>
232template<
class Type, Foam::direction nComp,
int nTuple>
241 beginDataArray<Type, nComp, nTuple>
323 os_ <<
' ' <<
k <<
'=' << quote_ << v << quote_;
327template<
class... Args>
331 const std::string& v,
335 if (!canWriteAttr(
k))
return *
this;
337 writeAttr(
k, v.c_str());
338 return xmlAttr(std::forward<Args>(
args)...);
342template<
class... Args>
350 if (!canWriteAttr(
k))
return *
this;
353 return xmlAttr(std::forward<Args>(
args)...);
357template<
class... Args>
365 if (!canWriteAttr(
k))
return *
this;
368 return xmlAttr(std::forward<Args>(
args)...);
372template<
class... Args>
380 if (!canWriteAttr(
k))
return *
this;
383 return xmlAttr(std::forward<Args>(
args)...);
387template<
class... Args>
395 if (!canWriteAttr(
k))
return *
this;
398 return xmlAttr(std::forward<Args>(
args)...);
402template<
class... Args>
406 const std::string& v,
413 return xmlAttr(std::forward<Args>(
args)...);
417template<
class... Args>
428 return xmlAttr(std::forward<Args>(
args)...);
432template<
class... Args>
443 return xmlAttr(std::forward<Args>(
args)...);
447template<
class... Args>
458 return xmlAttr(std::forward<Args>(
args)...);
462template<
class... Args>
473 return xmlAttr(std::forward<Args>(
args)...);
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Strings corresponding to the vtk XML DataArray attributes.
const Foam::Enum< fileAttr > fileAttrNames
Strings corresponding to the vtk XML attributes.
fileAttr
Some common XML attributes for vtk files.
dataArrayAttr
Some common names for XML DataArray entries.
fileTag
Some common XML tags for vtk files.
const Foam::Enum< fileTag > fileTagNames
Strings corresponding to the vtk XML tags.
const Foam::Enum< fileTag > fileContentVersions
Version string for some vtk XML file content types.
Ostream & indent(Ostream &os)
Indent stream.
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)