36 template<
class... Args>
39 const std::string& text,
49 if constexpr (
sizeof...(Args))
51 xmlCommentLoop(std::forward<Args>(
args)...);
92 if (canWriteToplevel(
"xml header"))
94 os_ <<
"<?xml version='1.0'?>" <<
nl;
101 template<
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 <<
' ';
133 template<
class... Args>
140 if (openTagImpl(tagName))
142 xmlAttr(std::forward<Args>(
args)...);
149 template<
class... Args>
160 template<
class... Args>
168 xmlAttr(std::forward<Args>(
args)...);
175 template<
class... Args>
191 const word& contentVersion,
219 template<Foam::vtk::fileTag ContentType>
231 template<
class Type, Foam::direction nComp,
int nTuple>
240 beginDataArray<Type, nComp, nTuple>
322 os_ <<
' ' <<
k <<
'=' << quote_ << v << quote_;
326 template<
class... Args>
330 const std::string& v,
334 if (!canWriteAttr(
k))
return *
this;
336 writeAttr(
k, v.c_str());
337 return xmlAttr(std::forward<Args>(
args)...);
341 template<
class... Args>
349 if (!canWriteAttr(
k))
return *
this;
352 return xmlAttr(std::forward<Args>(
args)...);
356 template<
class... Args>
364 if (!canWriteAttr(
k))
return *
this;
367 return xmlAttr(std::forward<Args>(
args)...);
371 template<
class... Args>
379 if (!canWriteAttr(
k))
return *
this;
382 return xmlAttr(std::forward<Args>(
args)...);
386 template<
class... Args>
394 if (!canWriteAttr(
k))
return *
this;
397 return xmlAttr(std::forward<Args>(
args)...);
401 template<
class... Args>
405 const std::string& v,
412 return xmlAttr(std::forward<Args>(
args)...);
416 template<
class... Args>
427 return xmlAttr(std::forward<Args>(
args)...);
431 template<
class... Args>
442 return xmlAttr(std::forward<Args>(
args)...);
446 template<
class... Args>
457 return xmlAttr(std::forward<Args>(
args)...);
461 template<
class... Args>
472 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)