gml_TCallbackList Class Reference

#include <gml_Callback.h>

Collaboration diagram for gml_TCallbackList:

Collaboration graph
[legend]
List of all members.

Detailed Description

A list of callback functions. Can invoke all functions in the list.


Public Member Functions

gml_TError Init ()
 Initializes the list to an empty state.
void Dispose ()
 Releases all the resources of the callback list.
gml_TError RegisterCallback (gml_TCallback callback, gml_TPointer userData)
 Registers the function callback so that it will be called when the "Invoke" method is called on this object. callback will receive userData as its second parameter (the first parameter being the error code).
void DeregisterCallback (gml_TCallback callback, gml_TPointer userData)
 De-registers the function callback if it was registered with a userData parameter equal tu userData. If no such callback userData couple exist in the list, does nothing. If more than one such couple exist in the list, only the first one is removed.
void Invoke (gml_TError err=gml_cNoError)
 Calls all the registered callback, passing the the errorcode err and their userData as parameters.
UInt32 Count ()
 Return the current list length.

The documentation for this class was generated from the following files:
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.