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>, 12 std::set<std::string>> container_t; 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 32 33 // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 34