IPMISensorGroup.h 868 Bytes
Newer Older
1
2
3
4
5
6
7
8
/*
 * IPMISensorGroup.h
 *
 *  Created on: 18 Jan 2017
 *      Author: Michael Ott (original), Micha Müller
 */

#ifndef IPMISENSORGROUP_H_
9
#define IPMISENSORGROUP_H_
10
11
12
13
14
15
16
17

#include "IPMISensorBase.h"
#include "../../includes/SensorGroupTemplate.h"

class IPMISensorGroup: public SensorGroupTemplate<IPMISensorBase> {

public:
	IPMISensorGroup(const std::string& name);
18
	IPMISensorGroup(const IPMISensorGroup& other);
19
	virtual ~IPMISensorGroup();
20
	IPMISensorGroup& operator=(const IPMISensorGroup& other);
21
22
23
24
25

	void init(boost::asio::io_service& io) override;
	void start()	override;
	void stop()		override;

26
	void setHost(IPMIHost* host) { _host = host; }
27
28
	const IPMIHost* const getHost()	const {	return _host; }

Micha Mueller's avatar
Micha Mueller committed
29
30
	void printConfig(LOG_LEVEL ll) override;

31
32
33
34
35
36
37
38
private:
	void read()			override;
	void readAsync()	override;

	IPMIHost* _host;
};

#endif /* IPMISENSORGROUP_H_ */