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

C:/temp/src/j2k/QNX4/Fred/TrainData.hpp

Go to the documentation of this file.
00001 #include "Const.hpp"
00002 
00003 class Data {
00004 
00005 public:
00006     Data();
00007     Data( int i, void* obj, bool v,
00008           double t_start, double t_exp,
00009           double last, double norm );
00010 
00011     Data( Data& d );
00012     ~Data();
00013 
00014     int     id;
00015     void*   object;
00016     bool    valid;               // Is it expired ?
00017 
00018     void    setTimer( double t_exp );
00019     void    Expired();
00020 
00021 protected:
00022     double  time_start;
00023     double  time_expire;
00024     double  last_update;         // in microseconds
00025     double  normal_update;       // Make an average 
00026                                  // if the delay is too long,
00027                                  // then refresh...
00028 
00029     virtual void Start()  = 0;   // Start Timer function
00030     virtual void Update() = 0;   // Update function
00031 
00032     virtual const bool operator== ( Data& d ) = 0;
00033 };
00034 

Generated on Sun Oct 14 18:46:41 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001