Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Observer Class Reference

Inheritance diagram for Observer:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 16 of file Observer.sip.

Public Member Functions

virtual void update (const Observable *)=0
 The update method.
virtual void willDelete (const Observable *)
 Notifies this Observer object that one of its Observable objects is about to be deleted.
virtual ~Observer ()
 The destructor.

Protected Member Functions

 Observer ()


Constructor & Destructor Documentation

Observer::Observer  )  [protected]
 

virtual Observer::~Observer  )  [virtual]
 

The destructor.


Member Function Documentation

virtual void Observer::update const Observable  )  [pure virtual]
 

The update method.

This member function is called by the observed Observable when its state has changed The Command argument is optional and may be a null pointer.

Implemented in PlotterBase, QtView, and ViewBase.

virtual void Observer::willDelete const Observable  )  [virtual]
 

Notifies this Observer object that one of its Observable objects is about to be deleted.

Since most Observable objects are owned by its Observer, it is the Observer that issued the delete. Thus the default implementation here does nothing. Derived classes that observe objects owned by another should implement this method to remove the Observable from the list they are observing.


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 14:51:56 2005 for SiHippo by  doxygen 1.4.3