SNMPConfigurator.h 1.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
/*
 * SNMPConfigurator.h
 *
 *  Created on: 05.07.2018
 *      Author: Axel Auweter (original), Micha Mueller
 */

#ifndef SNMPCONFIGURATOR_H_
#define SNMPCONFIGURATOR_H_

11
#include "../../includes/ConfiguratorTemplate.h"
12

13
14
#include "SNMPConnection.h"
#include "SNMPSensorGroup.h"
15

16
class SNMPConfigurator : public ConfiguratorTemplate<SNMPSensorBase, SNMPSensorGroup, SNMPConnection> {
17
18
19
20
21

public:
	SNMPConfigurator();
	virtual ~SNMPConfigurator();

22
protected:
23
24
25
26
27
	/* Overwritten from ConfiguratorTemplate */
	void sensorBase(SNMPSensorBase& s, CFG_VAL config) override;
	void sensorGroup(SNMPSensorGroup& s, CFG_VAL config) override;
	void sensorEntity(SNMPConnection& s, CFG_VAL config) override;

Micha Mueller's avatar
Micha Mueller committed
28
29
30
	bool isEntityOfGroup(SNMPConnection& e, SNMPSensorGroup& g) override;
	void setEntityForGroup(SNMPConnection& e, SNMPSensorGroup& g) override;
	void finalizeGroup(SNMPSensorGroup& g) override;
31
32

	void printConfiguratorConfig(LOG_LEVEL ll) override;
33
34
};

35
extern "C" ConfiguratorInterface* create() {
36
37
38
	return new SNMPConfigurator;
}

39
extern "C" void destroy(ConfiguratorInterface* c) {
40
41
42
43
	delete c;
}

#endif /* SNMPCONFIGURATOR_H_ */