00001
00002
00003
00004
00005
00006
00007
00008 #ifndef MICROSECONDTIMESTAMP_H
00009 #define MICROSECONDTIMESTAMP_H
00010
00011
00012
00013 #include <vector>
00014
00015 #include "AnnotatorCommApi.h"
00016 #include "Timestamp.h"
00017
00018 using namespace std;
00019
00020
00021
00022 namespace annotatorcomm
00023 {
00024
00029 class ANNCOMM_API MicrosecondTimestamp : public Timestamp
00030 {
00031 public:
00049 static MicrosecondTimestamp makeTimestamp(vector<uint8_t> timestamp, int offset);
00050
00051 public:
00060 MicrosecondTimestamp(int year, int day, int second, long microsecond);
00061
00067 virtual int getYear() const;
00068
00074 virtual int getDayOfYear() const;
00075
00081 virtual int getSecondOfDay() const;
00082
00088 virtual long getMicrosecond() const;
00089
00090 protected:
00094 int year;
00095
00099 int day;
00100
00104 int second;
00105
00109 long microsecond;
00110 };
00111
00112 }
00113
00114
00115
00116 #endif