Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

TimeInfoPkg.h

00001 #ifndef TIMEINFOPKG_H_DEF
00002 #define TIMEINFOPKG_H_DEF
00003 
00004 #include "TelepatiPkg.h"
00005 #include <SystemTime.h>
00006 #include <time.h>
00007 
00008 using namespace std;
00009 
00017 class TimeInfoPkg : public TelepatiPkg{
00018  public:
00020   TimeInfoPkg(int a, const SystemTime& time, bool ack);
00024   TimeInfoPkg(byte* ptr);
00025 
00027   virtual ~TimeInfoPkg();
00028 
00031   virtual TelepatiPkg* clone();
00032 
00036   byte* getMsg();  
00037 
00040   inline SystemTime getTime() {return SystemTime(seconds, useconds); };
00043   inline void setTime(const SystemTime& time) { 
00044     seconds=time.seconds; 
00045     useconds=time.useconds; };
00046 
00047  protected:
00049   longword seconds;
00051   longword useconds;
00052 };
00053 
00054 #endif

Generated on Thu Jun 23 16:51:17 2005 for Packages_Library by  doxygen 1.3.9.1