32 #ifndef writeMeshObject_H 33 #define writeMeshObject_H 42 template<
class Type,
class CheckType = Type>
48 bool disableHeaderChecking =
false 66 io.typeHeaderOk<Type>(
false)
67 && io.headerClassName() == CheckType::typeName
70 Info<<
" Reading " << io.headerClassName()
71 <<
" : " << name <<
endl;
76 if (disableHeaderChecking)
78 oldTypeName = Type::typeName;
84 if (disableHeaderChecking)
86 const_cast<word&
>(Type::typeName) = oldTypeName;
88 const_cast<word&
>(meshObject.type()) = io.headerClassName();
92 writeOk = meshObject.regIOobject::write();
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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)
word name(const complex &)
Return a string representation of a complex.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...