63 bool ownedByRegistry_;
152 inline static Type&
store(Type*);
252 virtual bool global()
const;
271 virtual bool write(
const bool write =
true)
const;
bool upToDate(const regIOobject &) const
Return true if up-to-date with respect to given object.
bool readHeaderOk(const IOstream::streamFormat defaultFormat, const word &typeName)
Read header, check readOpt flags and read data if necessary.
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.
virtual bool read()
Read object.
void setUpToDate()
Set up to date (obviously)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool headerOk()
Read and check header info.
TypeName("regIOobject")
Runtime type information.
const labelList & watchIndices() const
Return file-monitoring handles.
void release()
Release ownership of this object from its registry.
virtual fileName filePath() const
Return complete path + object name if the file exists.
bool ownedByRegistry() const
Is this object owned by the registry?
regIOobject(const IOobject &, const bool isTime=false)
Construct from IOobject. Optional flag for if IOobject is the.
void close()
Close Istream.
A class for handling words, derived from string.
virtual bool readIfModified()
Read object if modified (as set by call to modified)
streamFormat
Enumeration for the format of data in the stream.
label eventNo() const
Event number at last update.
compressionType
Enumeration for the format of data in the stream.
void store()
Transfer ownership of this object to its registry.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool checkOut()
Remove object from registry.
void addWatch()
Add file watch on object (if registered and READ_IF_MODIFIED)
virtual void rename(const word &newName)
Rename.
virtual bool readData(Istream &)
Virtual readData function.
virtual bool modified() const
Return true if the object's file (or files for objectRegistry)
virtual bool global() const
Is object same for all processors.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
static float fileModificationSkew
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool write(const bool write=true) const
Write using setting from DB.
virtual bool writeData(Ostream &) const =0
Pure virtual writaData function.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool checkIn()
Add object to registry.
virtual ~regIOobject()
Destructor.