54Foam::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
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
const word & name() const noexcept
Return the object name.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
const word & name() const noexcept
Return the name of this functionObject.
regionFunctionObject(const regionFunctionObject &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read optional controls.
const ObjectType * findObject(const word &fieldName) const
Return const pointer to the object (eg, a field) in the (sub) objectRegistry.
Removes registered objects if present in the database.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results (no-op).
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
bool ownedByRegistry() const noexcept
Is this object owned by the registry?
bool checkOut()
Remove object from registry, and remove all file watches.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
constexpr char nl
The newline '\n' character (0x0a).