Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

tweek::Subject Interface Reference

The most basic interface of all Tweek subjects. More...

import "Subject.idl";

Inheritance diagram for tweek::Subject:

Inheritance graph
[legend]
List of all members.

Public Methods

void attach (in Observer o)
 Attaches the given observer to this subject. More...

void detach (in Observer o)
 Detaches the given observer from this subject. More...

void notify ()
 Notifies all attached observers that the state of this subject has changed in some way. More...


Detailed Description

The most basic interface of all Tweek subjects.

All user-defined subject interfaces must inherit from this interface.

Definition at line 50 of file Subject.idl.


Member Function Documentation

void tweek::Subject::attach in Observer    o
 

Attaches the given observer to this subject.

Postcondition:
A reference to the given observer is retained, and the observer will be notified whenever the state of this subject changes.
Parameters:
o  The observer to be attached.

void tweek::Subject::detach in Observer    o
 

Detaches the given observer from this subject.

Postcondition:
The given observer will no longer receive notifications of state changes for this subject.
Parameters:
o  The observer to be attached.

void tweek::Subject::notify  
 

Notifies all attached observers that the state of this subject has changed in some way.

Note:
Observers are not informed of what aspect of this subject's state changed. To get a complete picture of the subject's state, they must therefore query all state information.


The documentation for this interface was generated from the following file:
Generated on Sun May 2 14:41:10 2004 for Tweek by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002