Jump to content

SomClassReady: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:somClassReady}} This method indicates that a class has been constructed and is ready for normal use. Designed to be overridden. For backward compatibility, thi..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 4: Line 4:
For backward compatibility, this method does not take an Environment parameter.
For backward compatibility, this method does not take an Environment parameter.


; Original Class : [[SOMClass]]  
;Original Class : [[SOMClass]]  
 
==Syntax==
==Syntax==
  void somClassReady (SOMClass receiver)
  void somClassReady (SOMClass receiver)
==Parameters==
==Parameters==
; receiver (SOMClass) : A pointer to the class object that should be registered.
;receiver (SOMClass) : A pointer to the class object that should be registered.


==Return Code==
==Return Code==
Line 16: Line 18:
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.
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.  
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.
 


[[Category:SOMClass]]
[[Category:SOMClass]]

Latest revision as of 18:38, 12 October 2022

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.