Simpatico  v1.10
List of all members | Public Member Functions
Util::Observer< Event > Class Template Referenceabstract

Detailed Description

template<typename Event>
class Util::Observer< Event >

Abstract class template for observer in the observer design pattern.

An Observer is notified of an event by calling its update method. The template class parameter Event is the type of object that is passed to the update() method as a message about an event.

Definition at line 19 of file Notifier.h.

#include <Observer.h>

Public Member Functions

virtual ~Observer ()
 Destructor. More...
 
virtual void update (const Event &event)=0
 Respond to news of an event. More...
 

Constructor & Destructor Documentation

template<typename Event >
Util::Observer< Event >::~Observer ( )
virtual

Destructor.

Definition at line 47 of file Observer.h.

Member Function Documentation

template<typename Event>
virtual void Util::Observer< Event >::update ( const Event &  event)
pure virtual

Respond to news of an event.

Parameters
eventObject containing information about the event.

The documentation for this class was generated from the following files: