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 );
unsigned short mySize
Definition: lgrDataViewSet.h:58
void setType(char value)
Definition: lgrDataViewSet.h:53
DataPoint(unsigned char typeValue, double timeValue, unsigned short sizeValue)
Definition: lgrDataViewSet.h:39
void setSize(short value)
Definition: lgrDataViewSet.h:51
unsigned long getWholeTime() const
Definition: lgrDataViewSet.h:50
virtual ~DataPoint()
Definition: lgrDataViewSet.h:43
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
unsigned char myType
Definition: lgrDataViewSet.h:59
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
unsigned char type() const
Definition: lgrDataViewSet.h:54
std::map< unsigned long, size_t > DataPointIndexMap
Definition: lgrDataViewSet.h:63
std::deque< DataPoint > DataPointSet
Definition: lgrDataViewSet.h:62
double myTime
Definition: lgrDataViewSet.h:57
DtBoost::shared_ptr< DtLgrDataViewSet > DtLgrDataViewSetSP
Definition: lgrDataViewSet.h:24
unsigned short size() const
Definition: lgrDataViewSet.h:52
void setTime(double value)
Definition: lgrDataViewSet.h:48
A generic packed of typed binary data.
Definition: packet.h:41
DataPoint & operator=(const DataPoint &other)
Definition: lgrDataViewSet.h:46
double time() const
Definition: lgrDataViewSet.h:49
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Data for a single data point.
Definition: lgrDataViewSet.h:35
DataPoint(const DataPoint &other)
Definition: lgrDataViewSet.h:41
DataPoint()
Definition: lgrDataViewSet.h:38
Collection of data values sorted by time used for data views.
Definition: lgrDataViewSet.h:30
Contains lgrCore library definitions.