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