grinliz::Listener< LISTENER_CLASS > Class Template Reference

An interface used by any class that wants to listen to a publisher. More...

#include <glpublisher.h>

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 Thu Jul 20 20:45:33 2006 for Kyra by  doxygen 1.4.7