Important: The information in this document is obsolete and should not be used for new development.
GetSOMObjectDestructor
Retrieves a destructor for a SOM object.
ParamDestructorUPP GetSOMObjectDestructor ();
- return value
- A pointer to a destructor function that takes two parameters: an environment pointer and a pointer to a
SOMObject
; the function returns no value. The function has the following form:void
SOMObjectDestructor (Environment* ev,
SOMObject* somObject);
DISCUSSION
You call this method to retrieve a suitable destructor function for a SOM object. The destructor function deletes the object, as shown in the following example:
SOMObjectDestructor (Environment* ev, SOMObject* somObject) { delete somObject; }If you subclassParameterSet
, do not override this method.