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

adaptors/magnetometeradaptor/magnetometeradaptor.h

Go to the documentation of this file.
00001 
00027 #ifndef MAGNETOMETERADAPTOR_H
00028 #define MAGNETOMETERADAPTOR_H
00029 
00030 #include "sysfsadaptor.h"
00031 #include "deviceadaptorringbuffer.h"
00032 #include "datatypes/genericdata.h"
00033 #include <QString>
00034 
00041 class MagnetometerAdaptor : public SysfsAdaptor
00042 {
00043     Q_OBJECT;
00044 public:
00045 
00050     static DeviceAdaptor* factoryMethod(const QString& id)
00051     {
00052         return new MagnetometerAdaptor(id);
00053     }
00054 
00055 protected:
00060     MagnetometerAdaptor(const QString& id);
00061     ~MagnetometerAdaptor();
00062 
00063     bool setInterval(const unsigned int value, const int sessionId);
00064 
00065 private:
00066 
00074     void processSample(int pathId, int fd);
00075 
00081     QString getDriverHandle() const;
00082 
00083     QString driverHandle_;
00084     DeviceAdaptorRingBuffer<TimedXyzData>* magnetometerBuffer_;
00085 };
00086 
00087 #endif

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