sensorfw: adaptors/mrstaccelerometer/mrstaccelerometeradaptor.h Source File

sensorfw

mrstaccelerometeradaptor.h
Go to the documentation of this file.
1
25#ifndef MRSTACCELEROMETERADPTOR_H
26#define MRSTACCELEROMETERADPTOR_H
27
28#include "sysfsadaptor.h"
29#include "deviceadaptorringbuffer.h"
30
31#include "datatypes/orientationdata.h"
32
33 class MRSTAccelAdaptor : public SysfsAdaptor
34{
35 Q_OBJECT
36
37public:
38 static DeviceAdaptor* factoryMethod (const QString& id)
39 {
40 return new MRSTAccelAdaptor (id);
41 }
42
43 MRSTAccelAdaptor (const QString& id);
44 ~MRSTAccelAdaptor ();
45
46protected:
47 void processSample (int pathId, int fd);
48
49private:
50 DeviceAdaptorRingBuffer<OrientationData>* buffer;
51};
52#endif
MRSTAccelAdaptor
Definition: mrstaccelerometeradaptor.h:34
MRSTAccelAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: mrstaccelerometeradaptor.h:38
MRSTAccelAdaptor::MRSTAccelAdaptor
MRSTAccelAdaptor(const QString &id)
MRSTAccelAdaptor::processSample
void processSample(int pathId, int fd)
MRSTAccelAdaptor::~MRSTAccelAdaptor
~MRSTAccelAdaptor()
orientationdata.h
Datatypes for different filters.