34#ifndef Foam_writeMeshObject_H
35#define Foam_writeMeshObject_H
44template<
class Type,
class CheckType = Type>
50 const bool strictTypeChecking =
true,
51 const bool disableHeaderChecking =
false
67 if (
io.typeHeaderOk<CheckType>(strictTypeChecking,
true,
false))
69 Info<<
" Reading " <<
io.headerClassName()
74 const word oldTypeName = Type::typeName;
75 if (disableHeaderChecking)
82 if (disableHeaderChecking)
84 const_cast<word&
>(Type::typeName) = oldTypeName;
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling file names.
The meshObject is a concrete regIOobject to register MeshObject items.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool writeMeshObject(const word &name, const fileName &meshDir, Time &runTime, const bool strictTypeChecking=true, const bool disableHeaderChecking=false)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.