From 47b736139f242a8fd2e5c6513b0c2e0b31110d77 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 21 Jun 2015 13:26:55 +0200 Subject: SoilMoisture: o Adding getName(). sm-get-value: o More cleanup. --- sensor/include/trygvis/sensor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sensor') diff --git a/sensor/include/trygvis/sensor.h b/sensor/include/trygvis/sensor.h index 48fb509..b5199e2 100644 --- a/sensor/include/trygvis/sensor.h +++ b/sensor/include/trygvis/sensor.h @@ -82,8 +82,11 @@ public: ~KeyDictionary() { std::for_each(keys.begin(), keys.end(), std::default_delete()); } + KeyDictionary(KeyDictionary& that) = delete; + KeyDictionary& operator=(const KeyDictionary&) = delete; + SampleKey *indexOf(const string &key) { SampleKeyIndex i = 0; for (auto ptr = keys.cbegin(); ptr != keys.cend(); ptr++, i++) { -- cgit v1.2.3