Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

timestamp.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                                  timestamp.h
00003                              -------------------
00004     begin                : Sat Feb 2 2002
00005     copyright            : (C) 2002 by Constantinos A. Kotsokalis
00006     email                : ckotso@grnet.gr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef TIMESTAMP_H
00019 #define TIMESTAMP_H
00020 
00021 
00026 class TimeStamp;
00027 
00028 #include "common.h"
00029 
00030 class TimeStamp {
00031 public: 
00032     TimeStamp();
00033     TimeStamp(uint32_t&, uint32_t&);
00034     ~TimeStamp();
00036   bool operator >= (const TimeStamp& );
00038   bool operator > (const TimeStamp& );
00040   bool operator <= (const TimeStamp& );
00042   bool operator < (const TimeStamp& );
00044   TimeStamp operator - (const TimeStamp& );
00046   TimeStamp operator + (const TimeStamp& );
00048   TimeStamp& operator = (const TimeStamp& );
00049     uint32_t& getSec() { return seconds; }
00050     uint32_t& getMsec() { return milliseconds; }
00051 
00052 private:
00053     uint32_t seconds, milliseconds;
00054 };
00055 
00056 #endif

Generated on Thu Jun 26 00:23:13 2003 for Panoptis by doxygen1.2.18