Jump to content

SomRegisterClass: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:somRegisterClass}} This method adds a class object to the SOM run-time class registry. '''Note:''' For backward compatibility, this method does not take an Env..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 4: Line 4:
'''Note:''' For backward compatibility, this method does not take an Environment parameter.
'''Note:''' For backward compatibility, this method does not take an Environment parameter.


; Original Class : [[SOMClassMgr]]
;Original Class : [[SOMClassMgr]]


==Syntax==
==Syntax==
Line 10: Line 10:


==Parameters==
==Parameters==
; receiver (SOMClassMgr) : Usually SOMClassMgrObject (or a pointer to an instance of a user-supplied subclass of SOMClassMgr).  
;receiver (SOMClassMgr) : Usually SOMClassMgrObject (or a pointer to an instance of a user-supplied subclass of SOMClassMgr).
 
;classObj (SOMClass) : A pointer to the class object to add to the SOM class registry.
; classObj (SOMClass) : A pointer to the class object to add to the SOM class registry.


==Return Code==
==Return Code==
Line 25: Line 24:


==Related==
==Related==
===Methods===
;Methods
* [[somUnregisterClass]]
* [[somUnregisterClass]]


[[Category:SOMClassMgr]]
[[Category:SOMClassMgr]]

Latest revision as of 18:20, 12 October 2022

This method adds a class object to the SOM run-time class registry.

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

Original Class
SOMClassMgr

Syntax

void somRegisterClass (SOMClassMgr receiver, SOMClass classObj)

Parameters

receiver (SOMClassMgr)
Usually SOMClassMgrObject (or a pointer to an instance of a user-supplied subclass of SOMClassMgr).
classObj (SOMClass)
A pointer to the class object to add to the SOM class registry.

Return Code

rc (void)

Remarks

The somRegisterClass method adds a class object to the SOM run-time class registry maintained by SOMClassMgrObject.

All SOM run-time class objects should be registered with the SOMClassMgrObject. This is done automatically during the execution of the somClassReady method as class objects are created.

Example Code

Related

Methods