m2.mbcp/src/timestamp.h

28 lines
506 B
C
Raw Permalink Normal View History

2006-02-05 17:43:00 +00:00
#ifndef _GYR_TIMESTAMP
#define _GYR_TIMESTAMP
#include "protocol.h"
#include <vector>
class TimeStamp : public std::vector<short int> {
private:
short _index;
Protocol::Type _type;
public:
TimeStamp(Protocol::Type t, short idx);
2006-03-01 21:40:44 +00:00
TimeStamp::TimeStamp(Protocol::Type type, char * raw, unsigned short raw_size);
2006-02-05 17:43:00 +00:00
char * getRaw();
unsigned short getRawSize();
Protocol::Type getType();
short getIndex();
bool operator==(TimeStamp &stamp);
2006-03-06 16:40:15 +00:00
void TimeStamp::display();
2006-02-05 17:43:00 +00:00
};
#endif