9 #ifndef lgrDataViewSet_H_
10 #define lgrDataViewSet_H_
18 #include <vlutil/vlSmartPointers.h>
38 DataPoint() : myTime(-1.0), myType(255), mySize(0) {}
39 DataPoint(
unsigned char typeValue,
double timeValue,
unsigned short sizeValue)
40 : myTime(timeValue), myType(typeValue), mySize(sizeValue) {}
42 : myTime(other.myTime), myType(other.myType), mySize(other.mySize) {}
47 {
if (&other ==
this)
return *
this; myTime = other.
myTime; myType = other.
myType; mySize = other.
mySize;
return *
this;}
48 void setTime(
double value) {myTime = value;}
49 double time()
const {
return myTime;}
51 void setSize(
short value) {mySize = value;}
52 unsigned short size()
const {
return mySize;}
53 void setType(
char value) {myType = value;}
54 unsigned char type()
const {
return myType;}
75 virtual
void addPacketData(const
DtPacket& packet);
78 virtual
void addDataPoint(
double time,
unsigned char type,
unsigned short size);
81 virtual
void addDataPoint(
DataPoint const& point);
84 virtual
void append(const DtLgrDataViewSet& secondSet);
88 virtual
void clearAllBeforeTime(
double time);
91 virtual
void clearSet();
103 bool getFirst(
DataPoint& firstPoint) const;
116 virtual
size_t fillSetFromTime(DtLgrDataViewSet& dataSet,
double startTime,
double endTime);
120 virtual
size_t fillSetFromIndex(DtLgrDataViewSet& dataSet,
size_t startIndex,
double endTime);
125 virtual
void indexPacketTime(
size_t index,
unsigned long packetTime);
129 virtual
void adjustTimeIndex( const DtLgrDataViewSet& newSet );