casacore::NoticeSource Class Reference

base class for notice originators More...

#include <Notice.h>

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

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


Constructor & Destructor Documentation

casacore::NoticeSource::NoticeSource (  )  [inline]

Definition at line 106 of file Notice.h.

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

Member Function Documentation

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

Definition at line 117 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 104 of file Notice.h.


Member Data Documentation

Definition at line 115 of file Notice.h.

Referenced by head().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1