63 bool ownedByRegistry_;
140 virtual bool global()
const;
198 inline static Type&
store(Type*);
307 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.
const word & name() const
Return name.
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)...
virtual bool globalFile() const
Return true if object is global, i.e. same for all processors.
fileName objectPath() const
Return complete path + object name.
const fileName & caseName(const bool global) const
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.
fileName filePath() const
Return complete path + object name if the file exists.
fileName filePath(const word &typeName, const bool global) 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.
bool registered() const
Is this object registered with the registry?
void close()
Close Istream.
A class for handling words, derived from string.
const fileName & caseName() const
virtual bool readIfModified()
Read object if modified (as set by call to modified)
streamFormat
Enumeration for the format of data in the stream.
fileName path(const bool global) const
Return complete path including the processor sub-directory.
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
Return true if object is global, i.e. 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.
fileName path() const
Return complete path.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool checkIn()
Add object to registry.
fileName objectPath(const bool global) const
Return complete path + object name including the processor.
virtual ~regIOobject()
Destructor.