diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-21 13:26:55 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-21 13:26:55 +0200 |
commit | 47b736139f242a8fd2e5c6513b0c2e0b31110d77 (patch) | |
tree | 94aeca3afb607a2b60cca2a146c8532d431f2b1f /sensor/include | |
parent | f4afc04ee7a085a89ad84ba89344bb50ca9e6e04 (diff) | |
download | ble-toys-47b736139f242a8fd2e5c6513b0c2e0b31110d77.tar.gz ble-toys-47b736139f242a8fd2e5c6513b0c2e0b31110d77.tar.bz2 ble-toys-47b736139f242a8fd2e5c6513b0c2e0b31110d77.tar.xz ble-toys-47b736139f242a8fd2e5c6513b0c2e0b31110d77.zip |
SoilMoisture:
o Adding getName().
sm-get-value:
o More cleanup.
Diffstat (limited to 'sensor/include')
-rw-r--r-- | sensor/include/trygvis/sensor.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<SampleKey>()); } + 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++) { |