Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 1 | #ifndef __SENSORSET_H |
| 2 | #define __SENSORSET_H |
| 3 | |
| 4 | #include <map> |
| 5 | #include <set> |
| 6 | #include <string> |
| 7 | |
| 8 | class SensorSet |
| 9 | { |
| 10 | public: |
| 11 | typedef std::map<std::pair<std::string, std::string>, |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 12 | std::set<std::string>> container_t; |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 13 | |
| 14 | SensorSet(const std::string& path); |
| 15 | |
| 16 | container_t::const_iterator begin() |
| 17 | { |
| 18 | return const_cast<const container_t&>(container).begin(); |
| 19 | } |
| 20 | |
| 21 | container_t::const_iterator end() |
| 22 | { |
| 23 | return const_cast<const container_t&>(container).end(); |
| 24 | } |
| 25 | |
| 26 | private: |
| 27 | container_t container; |
| 28 | |
| 29 | }; |
| 30 | |
| 31 | #endif |
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 32 | |
| 33 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |