• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

datatypes/genericdata.h

Go to the documentation of this file.
00001 
00027 #ifndef GENERICDATA_H
00028 #define GENERICDATA_H
00029 
00030 #include <QMetaType>
00031 
00035 class TimedData
00036 {
00037 public:
00038 
00044     TimedData(const quint64& timestamp) : timestamp_(timestamp) {}
00045 
00046     quint64 timestamp_;  
00047 };
00048 
00052 class TimedXyzData : public TimedData
00053 {
00054 public:
00058     TimedXyzData() : TimedData(0), x_(0), y_(0), z_(0) {}
00059 
00068     TimedXyzData(const quint64& timestamp, int x, int y, int z) : TimedData(timestamp), x_(x), y_(y), z_(z) {}
00069 
00070     int x_; 
00071     int y_; 
00072     int z_; 
00073 };
00074 Q_DECLARE_METATYPE ( TimedXyzData )
00075 
00076 #endif // GENERICDATA_H

Generated on Mon Jun 27 2011 14:38:47 for sensorfw by  doxygen 1.7.1