grinliz::Listener< LISTENER_CLASS > Class Template Reference
#include <glpublisher.h>
Inheritance diagram for grinliz::Listener< LISTENER_CLASS >:
List of all members.
Detailed Description
template<class LISTENER_CLASS>
class grinliz::Listener< LISTENER_CLASS >
An interface used by any class that wants to listen to a publisher. Trickiness has gone into making this class very easy to use. To use it:
class SwitchListener : public Listener< SwitchListener >
{
public:
void Click() = 0;
}
Note that the type of the Listener template is the interface being created.
The client code would then use this by:
class Light : public SwitchListener
and implementing the abstract methods.
The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:26 2007 for Lilith3D by
1.5.1-p1