CloneInto
TheCloneIntomethod clones this persistent object by copying its data into the specified storage unit.
void CloneInto (in ODDraftKey key, in ODStorageUnit toSU, in ODFrame scope);
key- The draft key identifying the current cloning operation, expressed as a 32-bit value. The key provides thread-safe access to cloning.
toSU- A reference to the destination storage unit to which the data is to be copied.
scope- A reference to the frame object that defines the scope of the cloning operation.
DISCUSSION
Your part should never call this method directly; it is called by the draft'sCloneorWeakClonemethods.The
scopeparameter determines which of the referenced objects are within the scope of this cloning operation. Typically, thescopeparameter is a reference to a frame and only those objects embedded in that frame are within the scope. In the rare case in which thescopeparameter iskODNULL, all referenced objects are within the scope.This method copies this object's data into the specified destination storage unit and clones any additional objects to which this object has strong and weak persistent references and that are within the scope of this cloning operation. Objects referenced by strong persistent references are strongly cloned by recursive calls to the
Clonemethod; objects referenced by weak persistent references are weakly cloned by calls to theWeakClonemethod. Otherwise, only those objects logically enclosed in the specified frame are within the scope and should be cloned.OVERRIDING
Every subclass ofODPersistentObjectmust override theCloneIntomethod to support data transfer of internal data. The override method must call its inheritedCloneIntomethod at the beginning of its implementation.SEE ALSO
TheODDraftKeytype (page 902).
TheODDraft::Clonemethod (page 161).
TheODDraft::WeakClonemethod (page 183).
TheODPartclass (page 459).
"The CloneInto Method" on page 104 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"The Cloning Sequence" on page 321 in OpenDoc Programmer's Guide.
"The CloneInto Method of Your Part Editor" on page 327 in OpenDoc Programmer's Guide.