PDUConfigurator.cpp 601 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
/*
 * PDUConfigurator.cpp
 *
 *  Created on: 24.02.2018
 *      Author: Micha Mueller
 */

#include "PDUConfigurator.h"

#include <boost/foreach.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/algorithm/string.hpp>

PDUConfigurator::PDUConfigurator() {
	// TODO Auto-generated constructor stub

}

PDUConfigurator::~PDUConfigurator() {
	for (auto s : _sensors) {
		delete s;
	}
}

std::vector<Sensor*>& PDUConfigurator::readConfig(std::string cfgPath) {
	return _sensors;
}

bool PDUConfigurator::readSensor(PDUSensor& sensor, boost::property_tree::iptree& config) {
	return 0;
}