ODContainer
- Superclasses
- ODRefCntObject -->
ODObject- Subclasses
- none
An object of the
ODContainerclass represents a physical container storing a collection of OpenDoc documents. TheODContainerclass lets you access these documents independently of the container's physical characteristics or internal structure.Description
TheODContainerclass is implemented differently for different platforms and storage mechanisms.The
ODContainerclass manipulates physical containers. Similarly, theODDocumentclass (page 132) manipulates documents; theODDraftclass (page 147) manipulates drafts; and theODStorageUnitclass (page 664) manipulates storage units. This set of related classes,ODContainer,ODDocument,ODDraft, andODStorageUnitis called a container suite. Container suite classes are implemented as an integrated set for each platform and storage mechanism because they work intimately with one another at many levels. The container suite used by default on the Mac OS platform is the Bento container suite.Each container object can contain one or more document objects. Each document object, in turn, can contain one or more draft objects, and each draft object can contain one or more storage-unit objects. Each container, document, draft, and storage unit has with a unique ID.
Only the OpenDoc storage system directly creates container objects. The document shell or container application creates or accesses a container object by calling the storage-system object's
CreateContainer(page 660) orAcquireContainermethod (page 658). The storage system ensures that there is only one container object associated with each physical container.You can access a document of a container by calling the container's
AcquireDocumentmethod (page 100). TheODContainerclass is responsible for ensuring that there is only one document object associated with each document in the container.For more information on how
ODContainerand other container-suite classes are used, see the chapters on storage and OpenDoc runtime features in theOpenDoc Programmer's Guide for the MacOS . Methods
This section presents summary descriptions of theODContainermethods grouped according to purpose, followed by detailed descriptions in alphabetical order. Methods marked [D] are typically called by the document shell or container applications.Object Retrieval
Inquiry
AcquireDocument[D]- Returns a reference to the document object associated with the specified document ID.
GetStorageSystem- Returns a reference to the storage-system object that created this container object.
Naming
GetID- Returns the container ID of this container object.
GetName- Returns the name of this container object.
SetName[D]- Sets the name of this container object.
Methods