35 #ifndef objectRegistry_H 36 #define objectRegistry_H 75 bool parentNotTime()
const;
97 const label nIoObjects = 128
105 const label nIoObjects = 128
164 const bool forceCreate =
false const Time & time() const
Return time.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
const objectRegistry & db() const
Return the local objectRegistry.
void readModifiedObjects()
Read the objects that have been modified.
bool foundObject(const word &name) const
Is the named Type found?
const objectRegistry & parent() const
Return the parent objectRegistry.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual bool modified() const
Return true if any of the object's files have been modified.
const objectRegistry & subRegistry(const word &name, const bool forceCreate=false) const
Lookup and return a const sub-objectRegistry. Optionally create.
A class for handling words, derived from string.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write the objects.
virtual ~objectRegistry()
Destructor.
streamFormat
Enumeration for the format of data in the stream.
virtual bool readIfModified()
Read object if modified.
wordList names() const
Return the list of names of the IOobjects.
An STL-conforming hash table.
A wordRe is a word, but can also have a regular expression for matching words.
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool checkOut()
Remove object from registry.
label getEvent() const
Return new event number.
TypeName("objectRegistry")
Declare type name for this IOobject.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
virtual bool writeData(Ostream &) const
writeData function required by regIOobject but not used
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Registry of regIOobjects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool checkIn()
Add object to registry.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
const word & name() const
Return name.
virtual void rename(const word &newName)
Rename.