Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

timedevent.h

Go to the documentation of this file.
00001 //--- < TIMEDEVENT.H > ----------| ViewGraph - A Flexible Graph view Framework |
00002 //
00003 // Defines timed event structure used by
00004 // TimedEventManager
00005 //
00006 // $Author: botik32 $
00007 // $Revision: 1.2 $
00008 // $Date: 2004/04/18 09:22:01 $
00009 //-----------------------------------------------------------------------------/
00010 
00011 #ifndef TIMEDEVENT_H
00012 #define TIMEDEVENT_H
00013 
00014 class Event;
00015 
00016 class TimedEvent
00017 {
00018 protected:
00019         Event *event;
00020         // time left, in milliseconds.
00021         unsigned long time_due;
00022 public:
00023         TimedEvent( Event *, int dly );
00024         bool is_overdue( int maxdue );
00025         bool is_type( const char * );
00026         Event* get_event( void );
00027 
00028         bool is_more( TimedEvent* e )
00029         {
00030                 return time_due > e->time_due;
00031         };
00032         bool is_more( unsigned long t)
00033         {
00034                 return time_due > t;
00035         };
00036         
00037         ~TimedEvent();
00038 };
00039 
00040 #endif
00041 
00042 /// $Log: timedevent.h,v $
00043 /// Revision 1.2  2004/04/18 09:22:01  botik32
00044 /// Changes to groupnode interface, timedeventmanager interface
00045 /// and implementation
00046 ///
00047 /// Revision 1.1.1.1  2004/03/26 10:50:24  botik32
00048 /// Initial release
00049 ///
00050 /// Revision 1.1.1.1  2004/03/26 08:53:33  botik
00051 /// initial import
00052 ///
00053 ///
00054 /// Revision 1.2  2003/12/30 16:25:05  botik
00055 /// Fixed a bug introduced by previous memory cleanup fix.
00056 ///
00057 /// Revision 1.1  2003/11/20 14:59:12  botik
00058 /// Added TimedEvent and TimedEventManager class.
00059 /// These will allow us to (hopefully) fix the
00060 /// borderlayer scrolling which sucks badly.
00061 ///

Generated on Wed Jun 23 18:47:21 2004 for cZUI by doxygen 1.3.5