|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Object:

Generic object. Provides the machinery for working with persistent objects.
Typically new references to persistent objects are created by using a constructor in the relevant derived class which takes the name of the persistent object. New objects are created by using the static create method of the derived class. If a name is given to create, the new object will be persistent, otherwise it will only exist for the current session.
|
|
This enumerated type is used to supply hints to the object database via Object::adviseResidency. |
|
|
This enumerated type is used to qualify the call to Object::adviseResidency by specifying when the required operation should be performed.
|
|
|
Create a null object reference. |
|
|
Create a reference to an existing object. |
|
|
Destroy the object reference. If the reference is to a non-persistent object, the object will be deleted if this was the last reference. If the object was persistent, then the object may be removed from memory and will be loaded from the database on the next reference. |
|
|
Add |
|
|
Add |
|
||||||||||||||||
|
This method can be used by an application to supply hints to the object database as to whether the object should be loaded into memory or unloaded from memory. See the description of residencyAdvice and residencyQualification above for more details. If a valid ResidencyListener is provided, it will be notified when the object becomes resident. Return EBadObject if the object is not valid, otherwise Utils::Success.
|
|
|
Return the lifetime assets associated with the object. These objects are grouped together with the object in the persistent storage and are pre-loaded at the same time as the object for efficient streaming. If the object is loaded via a Clump then these assets are held in memory for the lifetime of the Object. Reimplemented in Q::Clump. |
|
|
Destroy an object. Persistent objects become light for the remainder of the session after this operation. They will be removed from memory once the last reference is dropped. If the object is persistent, an attempt is made to remove it from its database. Persistent removal requires database readModifyCreate permission (see Database::open). If permission is not granted, the object will become light but the database image will remain in file. This case is indicated by returning Utils::Failure, otherwise Utils::Success is returned. If the object is invalid, EBadObject is returned. Reimplemented in Q::Concept, Q::Clip, and Q::Group. |
|
|
Return the physical object disk size in bytes. |
|
|
Make a copy of the object in the designated database. Duplicate the concept of this object and any knowledge sourced from the originating database. The duplicate has the same OID as the original. Return Utils::Success if successful. Otherwise, return WObjectPresent if an object with the same ID is already present in the destination database (this is a warning because it is assumed to be the same object). Return WClipPresent if a clip of the same name is present (also assumed to be the same clip). Return WNameConflict if the object was copied but not its concept due to another object already with a concept of the same name. Return Utils::InvalidArgument if the object is invalid or there was some other unknown problem copying the object. |
|
||||||||||||
|
Search the database for an object with the given name and type. If the object does not exist or the type is not valid, a null reference is returned. |
|
||||||||||||
|
Search the database for an object with the given name and type. If the object does not exist or the concept is not valid, a null reference is returned. |
|
|
Search the database for an object with the given unique identifier and return a reference to that object if it exists. If the object does not exist, a null reference is returned. |
|
|
Return the generation number of this object. The generation number is incremented each time the object is modified. |
|
|
Returns |
|
|
Return the load assets associated with the object. These objects are grouped together with the object in the persistent storage and are pre-loaded at the same time as the object for efficient streaming. If the object is loaded via a Clump then these assets are loaded with the object and then released. |
|
|
Return the in-memory size (bytes).
|
|
|
Return the name of the object referenced by this reference. If the object is not persistent, an empty string is returned. Reimplemented in Q::Concept. |
|
|
Transplant this object into the given database retaining the original OID.
|
|
|
Remove |
|
|
Remove |
|
|
Change the name of the persistent object. |
|
|
Return |
|
|
Return a unique identifier for the underlying object if it is valid, otherwise return the null UID. |
|
|
|
Qube Software Limited © 2000-2004
|
|