casa::NoticeSource Class Reference
[Utilities]

#include <Notice.h>

Inheritance diagram for casa::NoticeSource:

Inheritance graph
[legend]
List of all members.

Detailed Description

base class for notice originators

Intended use:

Part of API

Review Status

Reviewed By:
Friso Olnon
Date Reviewed:
1995/03/16

Synopsis

A NoticeSource maintains a list of all of the NoticeTargets which are interested in Notices from this NoticeSource. Its member function notify() sends the specified Notice to all the NoticeTargets in the list.

Classes which have many other dependent objects which need to be updated, should derive from this class.

Example

List , the linked list class, is derived from NoticeSource. It mainly contains status information; all the manipulation functions are located in the ListIter classes. The linked list and its iterators communicate with each other via the notice system. List does not provide any further notice functionality; everything is taken care of by its base class NoticeSource.

Definition at line 101 of file Notice.h.

Public Member Functions

 NoticeSource ()
virtual ~NoticeSource ()
void notify (const Notice &note)
 Sends the note to all NoticeTargets in the target list.

Private Member Functions

Link< NoticeTarget * > *& head ()

Private Attributes

Link< NoticeTarget * > * curIters

Friends

class NoticeTarget


Constructor & Destructor Documentation

casa::NoticeSource::NoticeSource (  )  [inline]

Definition at line 105 of file Notice.h.

virtual casa::NoticeSource::~NoticeSource (  )  [virtual]


Member Function Documentation

void casa::NoticeSource::notify ( const Notice note  ) 

Sends the note to all NoticeTargets in the target list.

Link<NoticeTarget*>*& casa::NoticeSource::head (  )  [inline, private]

Definition at line 116 of file Notice.h.

References curIters.


Friends And Related Function Documentation

friend class NoticeTarget [friend]

Definition at line 103 of file Notice.h.


Member Data Documentation

Link<NoticeTarget*>* casa::NoticeSource::curIters [private]

Definition at line 114 of file Notice.h.

Referenced by head().


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:44:27 2008 for NRAOCASA by  doxygen 1.5.1