casacore
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>

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

◆ NoticeSource()

casacore::NoticeSource::NoticeSource ( )
inline

Definition at line 103 of file Notice.h.

◆ ~NoticeSource()

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

Member Function Documentation

◆ head()

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

Definition at line 114 of file Notice.h.

References curIters.

◆ notify()

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

Sends the note to all NoticeTargets in the target list.

Friends And Related Function Documentation

◆ NoticeTarget

friend class NoticeTarget
friend

Definition at line 101 of file Notice.h.

Member Data Documentation

◆ curIters

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: