somClassReady

From EDM2
Jump to: navigation, search

This method indicates that a class has been constructed and is ready for normal use. Designed to be overridden.

For backward compatibility, this method does not take an Environment parameter.

Original Class 
SOMClass

Syntax

void somClassReady (SOMClass receiver)

Parameters

receiver (SOMClass) 
A pointer to the class object that should be registered.

Return Code

rc (void)

Remarks

This method is invoked automatically by the somBuildClass function after constructing and initializing a class object. The default implementation of this method provided by SOMClass simply registers the newly constructed class with SOMClassMgrObject. Metaclasses can override this method to augment class construction with additional registration protocol.

To have special processing done when a class object is created, you must define a metaclass for the class that overrides this method. The final statement in any overriding method should invoke the parent method to ensure that the class is properly registered with SOMClassMgrObject. Users of the C and C++ implementation bindings for SOM classes should never invoke this method directly; it is invoked automatically during class construction.