PDUSensorBase.h 688 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * PDUSensorBase.h
 *
 *  Created on: 13.08.2018
 *      Author: Micha Mueller
 */

#ifndef PDU_PDUSENSORBASE_H_
#define PDU_PDUSENSORBASE_H_

#include "../../headers/SensorBase.h"

#include "PDUUnit.h"

class PDUSensorBase : virtual public SensorBase {
public:
	PDUSensorBase(const std::string& name) :
		SensorBase(name) {
		_pdu = NULL;
	}

	virtual ~PDUSensorBase() {}

	void setPdu(PDUUnit* pdu) { _pdu = pdu; }

	PDUUnit* getPdu() const { return _pdu; }

	void pushBackXMLPathPart(std::tuple<std::string, std::string, attributesVector_t> pathPart) {
		_xmlPath.push_back(pathPart);
	}

protected:
	xmlPathVector_t	_xmlPath;
	PDUUnit* _pdu;

};

#endif /* PDU_PDUSENSORBASE_H_ */