blob: a6d8de7f5b3990aa69abc7e2b375b966d7e8a54d [file] [log] [blame]
Brad Bishop26b815f2017-01-04 13:32:47 -05001#pragma once
Patrick Williams3667cf32015-10-20 22:39:11 -05002
3#include <map>
4#include <set>
5#include <string>
6
7class SensorSet
8{
9 public:
10 typedef std::map<std::pair<std::string, std::string>,
Brad Bishop6bb97a92016-12-19 13:06:40 -050011 std::set<std::string>> container_t;
Patrick Williams3667cf32015-10-20 22:39:11 -050012
Brad Bishop92bbd052017-01-05 06:53:02 -050013 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 Williams3667cf32015-10-20 22:39:11 -050020
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 Bishop03476f12016-12-19 13:09:12 -050036// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4