System Global Function AddCallback


AddCallback( iEventSubscriber,
iEventPublisher,
iPublishedEvent,
iMethodToCall,
iClientData=NULL )
Adds a callback for a given event subscriber to a given event publisher and a given event. Role: This function makes the event subscriber subscribe to a given event that is published by a given event publisher. Whenever this event is published by this event publisher, the method declared when subscribing is called, along with possible useful data.
Parameters:
iEventSubscriber
The event subscriber, that is the object that features the iMethodToCall method called whenever iEventPublisher publishes iPublishedEvent
iEventPublisher
The event publisher that is expected to publish the event.
iPublishedEvent
The event in question published by iEventPublisher.
iMethodToCall
The subscriber's method to call whenever iEventPublisher publishes iPublishedEvent.
iClientData
Useful data to pass as an argument of iMethodToCall.
Returns:
The identifier of the created callback.

This object is included in the file: CATEventSubscriber.h
If needed, your Imakefile.mk should include the module: JS0GROUP

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.