5-1
Metaclass Framework Quick Reference
Metaclass Framework Quick Reference
SOMObject
SOMClass
metaclass
SOMMBeforeAfter
metaclass
Class Organization
— The root class of all SOM metaclasses.
Defines the essential behavior (methods) common to all
SOM classes.
— Serves as the metaclass when defining a class whose
instances will call given methods before and after each
instance method.
SOMMSingleInstance
metaclass
— Serves as the metaclass when defining a class for which only
one instance can ever be created.
SOMMTraced
metaclass
— Serves as the metaclass when defining a class whose instances’
methods (inherited or introduced) when invoked print a message
giving the method parameters and unpon completion print the return
value.
SOMMBeforeAfter metaclass
(see sombacls.idl)
void sommAfterMethod (
in SOMObject object,
in somId methodID,
in void *returnedvalue,
in va_list ap);
Specifies a method that is automatically called after execution of each client method.
boolean sommBeforeMethod (
in SOMObject object,
in somId methodID,
in va_list ap);
Specifies a method that is automatically called before execution of each client method.
SOMMSingleInstance metaclass
(see snglicls.idl)
SOMObject sommGetSingleInstance ( );
Gets the one instance of a specified class for which only a single instance can exist.
Komentarze do niniejszej Instrukcji