32 #ifndef writeMeshObject_H
33 #define writeMeshObject_H
42 template<
class Type,
class CheckType = Type>
48 bool disableHeaderChecking =
false
72 if (disableHeaderChecking)
74 oldTypeName = Type::typeName;
80 if (disableHeaderChecking)
82 const_cast<word&
>(Type::typeName) = oldTypeName;
88 writeOk = meshObject.regIOobject::write();
const word & headerClassName() const
Return name of the class name read from header.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const
Return const reference to name.
A class for handling file names.
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A class for handling words, derived from string.
static const word null
An empty word.
bool writeMeshObject(const word &name, const fileName &meshDir, Time &runTime, bool disableHeaderChecking=false)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.