Matt Spinler | b54357f | 2017-08-21 14:38:54 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <map> |
| 4 | #include <string> |
| 5 | #include <tuple> |
Matt Spinler | e7e432b | 2017-08-21 15:01:40 -0500 | [diff] [blame] | 6 | #include <vector> |
Matt Spinler | b54357f | 2017-08-21 14:38:54 -0500 | [diff] [blame] | 7 | |
| 8 | namespace witherspoon |
| 9 | { |
| 10 | namespace power |
| 11 | { |
| 12 | namespace ucd90160 |
| 13 | { |
| 14 | |
Matt Spinler | e7e432b | 2017-08-21 15:01:40 -0500 | [diff] [blame] | 15 | using RailNames = std::vector<std::string>; |
Matt Spinler | b54357f | 2017-08-21 14:38:54 -0500 | [diff] [blame] | 16 | |
Matt Spinler | e7e432b | 2017-08-21 15:01:40 -0500 | [diff] [blame] | 17 | constexpr auto pathField = 0; |
| 18 | constexpr auto railNamesField = 1; |
| 19 | |
| 20 | using DeviceDefinition = std::tuple<std::string, RailNames>; |
Matt Spinler | b54357f | 2017-08-21 14:38:54 -0500 | [diff] [blame] | 21 | |
| 22 | //Maps a device instance to its definition |
| 23 | using DeviceMap = std::map<size_t, DeviceDefinition>; |
| 24 | |
| 25 | } |
| 26 | } |
| 27 | } |