1-118 SOMobjects Base Toolkit: Programmer’s Reference Manual
somMergeInto Method
Purpose
Transfers SOM class registry information to another SOMClassMgr instance.
IDL Syntax
void somMergeInto (in SOMClassMgr target);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The somMergeInto method transfers the SOMClassMgr registry information from one
object to another. The target object is required to be an instance of SOMClassMgr or one of
its subclasses. At the completion of this operation, the target object can function as a
replacement for the receiver. The receiver object (which is then in a newly uninitialized
state) is placed in a mode where all methods invoked on it will be delegated to the target
object. If the receiving object is the instance pointed to by the global variable
SOMClassMgrObject, then SOMClassMgrObject is reassigned to point to the target
object.
Subclasses of SOMClassMgr that override the somMergeInto method should transfer their
section of the class manager object from the target to the receiver, then invoke their parent’s
somMergeInto method as the final step.
Invoke this method only if you are creating your own subclass of SOMClassMgr. Invoke
somMergeInto from your override of the SOMClassMgr’s somNew method.
Parameters
receiver Usually SOMClassMgrObject (or a pointer to an instance of a
user-supplied subclass of SOMClassMgr).
target A pointer to another instance of SOMClassMgr or one of its subclasses.
Komentáře k této Příručce