This method checks
whether
the event is from a given type (has the specified ID).
Client events should override this method, as follows:
OMBoolean
isTypeOf(short id) const {
if (id == <event>Id)
return TRUE;
return <super event>::isTypeOf(id);
Signaturevirtual OMBoolean isTypeOf(short id) const
Parametersid
Specifies the event ID to check for
ReturnsThe
method returns one of the following Boolean values:
- TRUE - The event has the specified
ID.
- FALSE - The event
does not have the specified ID.
Note: To
handle the consumption of derived events in a generic manner, use
the isTypeOf method. With this method, the generated code checks the
event type. The isTypeOf method returns
TRUE for
derived events, as well as for the actual event.