casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casacore::NoticeSource Class Reference

base class for notice originators More...

#include <Notice.h>

Inheritance diagram for casacore::NoticeSource:
casacore::List< t > casacore::OrderedMapRep< t, v > casacore::RecordInterface casacore::List< casacore::OrderedPair< key, val > > casacore::Record casacore::TableRecord

Public Member Functions

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

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 99 of file Notice.h.

Constructor & Destructor Documentation

casacore::NoticeSource::NoticeSource ( )
inline

Definition at line 103 of file Notice.h.

virtual casacore::NoticeSource::~NoticeSource ( )
virtual

Member Function Documentation

Link<NoticeTarget*>*& casacore::NoticeSource::head ( )
inlineprivate

Definition at line 114 of file Notice.h.

References curIters.

void casacore::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 101 of file Notice.h.

Member Data Documentation

Link<NoticeTarget*>* casacore::NoticeSource::curIters
private

Definition at line 112 of file Notice.h.

Referenced by head().


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