Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

ServiceStatus.h

00001 #ifndef SERVICESTATUS_H
00002 #define SERVICESTATUS_H
00003 
00004 #include <is/isinfo.h>
00005 
00006 // <<BeginUserCode>>
00007 
00008 // <<EndUserCode>>
00015 class ServiceStatus: public ISInfo {
00016 public:
00017 
00020     unsigned long                 done;
00021 
00024     unsigned long                 queue;
00025 
00028     float                         averageTimeEach;
00029 
00032     float                         timeLeft;
00033 
00034 
00035     ServiceStatus( )
00036       : ISInfo( "ServiceStatus" )
00037     {
00038     done = 0;
00039     queue = 0;
00040     averageTimeEach = 0;
00041     timeLeft = 0;
00042 
00043 // <<BeginUserCode>>
00044 
00045 // <<EndUserCode>>
00046     }
00047 
00048     ~ServiceStatus(){
00049 
00050 // <<BeginUserCode>>
00051 
00052 // <<EndUserCode>>
00053     }
00054 
00055 protected:
00056     ServiceStatus( const char * type )
00057       : ISInfo( type )
00058     {
00059     done = 0;
00060     queue = 0;
00061     averageTimeEach = 0;
00062     timeLeft = 0;
00063 
00064 // <<BeginUserCode>>
00065 
00066 // <<EndUserCode>>
00067     }
00068 
00069     void publishGuts( ISostream & out ){
00070     out << done << queue << averageTimeEach << timeLeft;
00071     }
00072 
00073     void refreshGuts( ISistream & in ){
00074     in >> done >> queue >> averageTimeEach >> timeLeft;
00075     }
00076 
00077 // <<BeginUserCode>>
00078 
00079 // <<EndUserCode>>
00080 };
00081 
00082 // <<BeginUserCode>>
00083 
00084 // <<EndUserCode>>
00085 #endif // SERVICESTATUS_H

Generated on Fri Sep 16 18:01:58 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5