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

logging/SLogger.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003            Scheduling Simulator
00004         Lehrstuhl f"ur Effiziente Algorithmen
00005            Technische Universit"at M"unchen
00006 
00007  File    : $Id: SLogger.h,v 1.2 2002/11/10 20:32:20 taeubig Exp $
00008 
00009  Purpose : base class for all loggers. a logger can be 
00010            - stand-alone: it registers itself as oberver of all parts 
00011                     of the tasksystem, that it needs to fulfill
00012         his purpose
00013      - dependent: it does NOT register as observer and must be 
00014                   fed with events to do its work.
00015              This is used for loggers which are used by other loggers, 
00016        that must rely on a certain order in which update()-methods
00017        of dependent loggers are called.      
00018 
00019  RCS-Log:
00020  $Log: SLogger.h,v $
00021  Revision 1.2  2002/11/10 20:32:20  taeubig
00022  namespace and header include changes
00023 
00024  Revision 1.1  2002/08/29 12:59:58  taeubig
00025  Added the sources
00026 
00027  Revision 1.14  2000/01/17 10:17:24  zoidl
00028  little changes in javadocs
00029 
00030  Revision 1.13  2000/01/09 21:06:16  zoidl
00031  reduced to base class for all loggers, added javadoc comments
00032 
00033  Revision 1.12  1999/12/07 16:07:53  zoidl
00034  filled default constructor
00035 
00036  Revision 1.11  1999/12/07 14:15:14  zoidl
00037  textual event logging moved from SLogger to STextLog
00038 
00039  Revision 1.10  1999/11/19 16:10:55  hall
00040  changed SObserver::update( SEvent & ) to ...( const SEvent & )
00041 
00042  Revision 1.9  1999/11/17 15:07:39  schickin
00043  new interface for logger
00044 
00045  Revision 1.8  1999/11/08 00:29:57  zoidl
00046  added suggestion for SPlayer
00047 
00048  Revision 1.7  1999/10/27 10:55:51  zoidl
00049  logging to file moved from SLogger to SSchedule
00050 
00051  Revision 1.6  1999/10/25 15:06:26  zoidl
00052  simple log-to-file facility
00053 
00054  Revision 1.5  1999/08/05 13:02:43  schickin
00055  redesign: event list for algorithm is generated by logger now
00056 
00057  Revision 1.4  1999/08/05 08:47:54  schickin
00058  purpose of important classes noted in the header-files
00059 
00060  Revision 1.3  1999/04/27 13:39:01  schickin
00061  well folks, that's the first demo version that really runs 8-)
00062 
00063  Revision 1.2  1999/01/29 10:03:30  schickin
00064  Project-Headers added.
00065 
00066 
00067  * #end# ************************************************************* */
00068 
00069 
00070 #ifndef SLOGGER_H
00071 #define SLOGGER_H
00072 
00073 // system header files
00074 
00075 // project header files
00076 #include "../model/STaskSystem.h"
00077 #include "../general/SObserver.h"
00078 
00086 class SLogger : public SObserver {
00087 
00088 public:
00092   SLogger() {};
00093 
00096   virtual ~SLogger() {};
00097   
00102   virtual void update(const SEvent& event)
00103     { feedEvent(event); };
00104   
00109   virtual void feedEvent(const SEvent& event) =0;
00110 };
00111 
00112 #endif //SLOGGER_H
00113 

Generated on Thu May 22 16:48:08 2003 for Sketch-it! by doxygen1.2.18