#define PDECLARE_NOTIFIER

(notifier, notifiee, func)

Declare a notifier object class.

Documentation

Declare a notifier object class. This macro declares the descendent class of PNotifierFunction that will be used in instances of PNotifier created by the PCREATE_NOTIFIER or PCREATE_NOTIFIER2 macros.

The macro is expected to be used inside a class declaration. The class it declares will therefore be a nested class within the class being declared. The name of the new nested class is derived from the member function name which should guarentee the class names are unique.

The notifier parameter is the class of the function that will be calling the notification function. The notifiee parameter is the class to which the called member function belongs. Finally the func parameter is the name of the member function to be declared.

This macro will also declare the member function itself. This will be:

      void func(notifier & n, INT extra)

The implementation of the function is left for the user.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.