Brad Bishop | 26b815f | 2017-01-04 13:32:47 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 2 | |
| 3 | #include <map> |
| 4 | #include <set> |
| 5 | #include <string> |
| 6 | |
| 7 | class SensorSet |
| 8 | { |
| 9 | public: |
| 10 | typedef std::map<std::pair<std::string, std::string>, |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 11 | std::set<std::string>> container_t; |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 12 | |
Brad Bishop | 92bbd05 | 2017-01-05 06:53:02 -0500 | [diff] [blame^] | 13 | explicit SensorSet(const std::string& path); |
| 14 | ~SensorSet() = default; |
| 15 | SensorSet() = delete; |
| 16 | SensorSet(const SensorSet&) = delete; |
| 17 | SensorSet& operator=(const SensorSet&) = delete; |
| 18 | SensorSet(SensorSet&&) = default; |
| 19 | SensorSet& operator=(SensorSet&&) = default; |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 20 | |
| 21 | container_t::const_iterator begin() |
| 22 | { |
| 23 | return const_cast<const container_t&>(container).begin(); |
| 24 | } |
| 25 | |
| 26 | container_t::const_iterator end() |
| 27 | { |
| 28 | return const_cast<const container_t&>(container).end(); |
| 29 | } |
| 30 | |
| 31 | private: |
| 32 | container_t container; |
| 33 | |
| 34 | }; |
| 35 | |
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 36 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |