00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef RGMA_TIMEINTERVAL_H
00015 #define RGMA_TIMEINTERVAL_H
00016
00017 #include <string>
00018 #include "rgma/RGMAException.h"
00019 #include "rgma/Units.h"
00020 namespace glite
00021 {
00022 namespace rgma
00023 {
00027 class TimeInterval
00028 {
00029 public:
00037 TimeInterval( int value = 0, Units units = Units::SECONDS )
00038 throw(RGMAException);
00039 virtual ~TimeInterval();
00040
00046 TimeInterval(const TimeInterval& timeInterval);
00047
00048 TimeInterval& operator=(const TimeInterval& timeInterval);
00049
00057 int getValueAs(Units units) throw(RGMAException);
00058
00059 private:
00060 int m_value;
00061
00062 };
00063 }
00064 }
00065 #endif //RGMA_TIMEINTERVAL_H