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