typedef
OPAQUE_64_BITS
CosObjCollection
;
CosObjCollection
CosNewObjCollection(
CosDoc
dP
);
dP | The document whose objects are collected, or
NULL to create a NULL collection (a NULL collection is not associated with a document and cannot store objects; it is generally used only as an initial value for a variable of type CosObjCollection). |
Adds a Cos object to a collection; see CosObjCollection
for requirements of these collections. This method sets the dirty flag of the collection's Cos document.
An exception is raised if the collection and the object belong to different Cos documents.
ASBool
CosObjAddToCollection(
CosObjCollection
coll
,
CosObj
item
);
coll | The Cos object collection.
|
item | The object to add.
|
ASBool
CosObjCollectionEnum(
CosObjCollection
coll
,
CosObjEnumProc
proc
,
void
*
clientData
);
coll | The object collection whose members are enumerated.
|
proc | A user-supplied callback to call for each member object of
coll . Enumeration ends if proc returns false . The callback must not modify the collection (for example, by adding or removing objects). Doing so produces undefined results or errors. |
clientData | A pointer to user-supplied data to pass to
proc each time it is called. |
NULL
collections are always equal (a NULL
collection is not associated with a document and cannot store objects; it is generally used only as an initial value for a variable of type CosObjCollection
). ASBool
CosObjCollectionEqual(
CosObjCollection
c1
,
CosObjCollection
c2
);
c1 | An object collection to compare.
|
c2 | An object collection to compare.
|
NULL
. A NULL
collection is not associated with a document and cannot store objects; it is generally used only as an initial value for a variable of type CosObjCollection
. ASBool
CosObjCollectionIsNull(
CosObjCollection
coll
);
coll | The object collection to test.
|
NULL
collection is zero. ASUns32
CosObjCollectionSize(
CosObjCollection
coll
);
coll | The object collection whose size is obtained.
|
Gets the CosObjCollection
containing the specified object. If the object is not in a collection, the method raises an exception.
An error is raised if obj
is not in a collection.
CosObjCollection
CosObjGetCollection(
CosObj
obj
);
obj | The object whose
CosObjCollection is obtained. |
CosObjCollection
to which the object belongs.
Removes a Cos object from the CosObjCollection
to which it belongs.
An exception is raised if the object is not in the collection.
void
CosObjRemoveFromCollection(
CosObj
obj
);
obj | The object to remove.
|