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

SLogger Class Reference

#include <SLogger.h>

Inherits SObserver.

Inherited by SGanttLog [virtual], SOptCriterionLog [virtual], SPlayerLog [virtual], SSimStepLog [virtual], and STextLog [virtual].

Inheritance diagram for SLogger:

Inheritance graph
[legend]
List of all members.

Public Methods

 SLogger ()
virtual ~SLogger ()
virtual void update (const SEvent &event)
virtual void feedEvent (const SEvent &event)=0

Detailed Description

The base class for all logger classes. Loggers observe certain components of the task system depending on their purpose. Logger may be directly attached to task systems or they may be fed with events. This is used for loggers which are used by other loggers. The normal observer mechanism is not sufficient here, because it does not guarantee the order in which the update()-methods are called.


Constructor & Destructor Documentation

SLogger::SLogger   [inline]
 

Constructor. The constructor of a derived class should look at least like this: SFooLog(STaskSystem& ts, registerAsObserver = true)

virtual SLogger::~SLogger   [inline, virtual]
 

Destructor


Member Function Documentation

virtual void SLogger::feedEvent const SEvent   event [pure virtual]
 

Here the logger must be fed with events when it is a dependent logger

Parameters:
event  an event that was sent by another logger

Implemented in SGanttLog, SOptCriterionLog, SPlayerLog, SSimStepLog, and STextLog.

virtual void SLogger::update const SEvent   event [inline, virtual]
 

Here the logger receives events when it is a stand-alone logger

Parameters:
event  an event created by one of the observed components

Implements SObserver.

Reimplemented in SGanttLog.


The documentation for this class was generated from the following file:
Generated on Thu May 22 16:50:47 2003 for Sketch-it! by doxygen1.2.18