Cafu Engine
ToolsSubjectT Class Reference
Inheritance diagram for ToolsSubjectT:

Public Member Functions

void RegisterObserver (ToolsObserverT *Obs)
 Registers the observer Obs for notification on changes in this class. More...
 
void UnregisterObserver (ToolsObserverT *Obs)
 Unregisters the observer Obs from further notification on changes in this class. More...
 
void UpdateAllObservers (ToolT *Tool, ToolsUpdatePriorityT Priority)
 Notifies all observers that something in the given tool changed so that they update themselves. More...
 
virtual ~ToolsSubjectT ()
 The virtual destructor. More...
 

Protected Member Functions

 ToolsSubjectT ()
 The constructor. It is protected so that only derived classes can create instances of this class. More...
 

Constructor & Destructor Documentation

ToolsSubjectT::~ToolsSubjectT ( )
virtual

The virtual destructor.

ToolsSubjectT::ToolsSubjectT ( )
protected

The constructor. It is protected so that only derived classes can create instances of this class.

Member Function Documentation

void ToolsSubjectT::RegisterObserver ( ToolsObserverT Obs)

Registers the observer Obs for notification on changes in this class.

Parameters
ObsThe observer that is to be registered.
void ToolsSubjectT::UnregisterObserver ( ToolsObserverT Obs)

Unregisters the observer Obs from further notification on changes in this class.

Parameters
ObsThe observer that is to be unregistered.
void ToolsSubjectT::UpdateAllObservers ( ToolT Tool,
ToolsUpdatePriorityT  Priority 
)

Notifies all observers that something in the given tool changed so that they update themselves.

Parameters
ToolThe specific tool that has changed.
PriorityThe priority with which the update should be implemented.

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