casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
casa::NoticeSource Class Reference

base class for notice originators More...

#include <Notice.h>

Inheritance diagram for casa::NoticeSource:
casa::List< t > casa::OrderedMapRep< key, value > casa::RecordInterface casa::Record casa::TableRecord casa::FlagReport casa::QtXmlRecord

List of all members.

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

Detailed Description

base class for notice originators

Intended use:

Public interface

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.


Constructor & Destructor Documentation

Definition at line 105 of file Notice.h.

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

Member Function Documentation

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

Definition at line 116 of file Notice.h.

References curIters.

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

Sends the note to all NoticeTargets in the target list.


Friends And Related Function Documentation

friend class NoticeTarget [friend]

Definition at line 103 of file Notice.h.


Member Data Documentation

Definition at line 114 of file Notice.h.

Referenced by head().


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