PerfSensor.h 565 Bytes
Newer Older
1
/*
2
 * PerfSensor.h
3
4
5
6
7
 *
 *  Created on: 11.12.2017
 *      Author: Micha Mueller
 */

8
9
#ifndef PERFSENSOR_H_
#define PERFSENSOR_H_
10

11
12
#include "PerfSensorBase.h"
#include "../../headers/SingleSensor.h"
13

14
class PerfSensor : public PerfSensorBase, public PerfAttributes, public SingleSensor {
15
16

public:
17
18
	PerfSensor(const std::string& name);
	virtual ~PerfSensor();
19

20
21
	void start() override;
	void stop() override;
22

23
private:
24
25
26
	void storeReading(reading_t reading, unsigned cacheIndex) override;
	void read() override;
	void readAsync() override;
27
28
};

29
#endif /* PERFSENSOR_H_ */