Go to the documentation of this file.
52 namespace functionEntries
176 inline static Type&
store(Type*);
281 virtual bool write()
const;
void operator=(const regIOobject &)
Dissallow assignment.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
A class for handling words, derived from string.
static const NamedEnum< fileCheckTypes, 4 > fileCheckTypesNames
bool upToDate(const regIOobject &) const
Return true if up-to-date with respect to given object.
virtual bool writeData(Ostream &) const =0
Pure virtual writaData function.
compressionType
Enumeration for the format of data in the stream.
label watchIndex() const
Return file-monitoring handle.
virtual bool read()
Read object.
bool checkIn()
Add object to registry.
regIOobject(const IOobject &, const bool isTime=false)
Construct from IOobject. Optional flag for if IOobject is the.
virtual bool write() const
Write using setting from DB.
bool registered_
Is this object registered with the registry.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool modified() const
Return true if the object's file (or files for objectRegistry)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label eventNo() const
Event number at last update.
label watchIndex_
Modification watch index.
Istream * isPtr_
Istream for reading.
fileCheckTypes
Types of communications.
virtual bool readIfModified()
Read object if modified (as set by call to modified)
bool ownedByRegistry() const
Is this object owned by the registry?
static bool masterOnlyReading
To flag master-only reading of objects.
void setUpToDate()
Set up to date (obviously)
bool ownedByRegistry_
Is this object owned by the registry.
static fileCheckTypes fileModificationChecking
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
void store()
Transfer ownership of this object to its registry.
TypeName("regIOobject")
Runtime type information.
Istream & readStream()
Return Istream.
bool checkOut()
Remove object from registry.
void close()
Close Istream.
virtual void rename(const word &newName)
Rename.
Dictionary entry that contains C++ OpenFOAM code that is compiled to generate the entry itself....
label eventNo_
eventNo of last update
virtual bool readData(Istream &)
Virtual readData function.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual ~regIOobject()
Destructor.
static int fileModificationSkew
void release()
Release ownership of this object from its registry.
streamFormat
Enumeration for the format of data in the stream.