isTypeOf

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);

Visibility
Public
Signature
virtual OMBoolean isTypeOf(short id) const
Parameters
id

Specifies the event ID to check for

Returns

The method returns one of the following Boolean values:

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.

Feedback