sensorfw: datatypes/genericdata.h Source File

sensorfw

genericdata.h
Go to the documentation of this file.
1
27#ifndef GENERICDATA_H
28#define GENERICDATA_H
29
30#include <QMetaType>
31
35 class TimedData
36{
37public:
38
44 TimedData(const quint64& timestamp) : timestamp_(timestamp) {}
45
46 quint64 timestamp_;
47};
48
52 class TimedXyzData : public TimedData
53{
54public:
58 TimedXyzData() : TimedData(0), x_(0), y_(0), z_(0) {}
59
68 TimedXyzData(const quint64& timestamp, float x, float y, float z) : TimedData(timestamp), x_(x), y_(y), z_(z) {}
69
70 float x_;
71 float y_;
72 float z_;
73};
74 Q_DECLARE_METATYPE ( TimedXyzData )
75
76#endif // GENERICDATA_H
TimedData
A base class for measurement data that contain timestamp.
Definition genericdata.h:36
TimedData::timestamp_
quint64 timestamp_
monotonic time (microsec)
Definition genericdata.h:46
TimedData::TimedData
TimedData(const quint64 &timestamp)
Constructor.
Definition genericdata.h:44
TimedXyzData
Class for vector type measurement data (timestamp, x, y, z).
Definition genericdata.h:53
TimedXyzData::z_
float z_
Z value.
Definition genericdata.h:72
TimedXyzData::TimedXyzData
TimedXyzData()
Constructor.
Definition genericdata.h:58
TimedXyzData::TimedXyzData
TimedXyzData(const quint64 &timestamp, float x, float y, float z)
Constructor.
Definition genericdata.h:68
TimedXyzData::y_
float y_
Y value.
Definition genericdata.h:71
TimedXyzData::x_
float x_
X value.
Definition genericdata.h:70
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(TMatrix)