38 namespace functionObjects
45 removeRegisteredObject,
54 Foam::functionObjects::removeRegisteredObject::removeRegisteredObject
74 dict.readEntry(
"objects", objectNames_);
82 for (
const word& objName : objectNames_)
84 regIOobject* ptr = findObject<regIOobject>(objName);
89 <<
" removing object " << ptr->
name() <<
nl
defineTypeNameAndDebug(ObukhovLength, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & name() const noexcept
Return the object name.
virtual bool execute()
Remove the registered objects.
constexpr char nl
The newline '\n' character (0x0a)
virtual bool read(const dictionary &dict)
Read the removeRegisteredObject data.
virtual bool write()
Do nothing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
bool checkOut()
Remove object from registry, and remove all file watches.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
bool ownedByRegistry() const noexcept
Is this object owned by the registry?
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual bool read(const dictionary &dict)
Read optional controls.