Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 1 | ## This file is a template, the comment below is emitted into the generated file |
| 2 | /* This is an auto generated file. Do not edit. */ |
| 3 | #pragma once |
| 4 | |
Brad Bishop | 05b0c1e | 2017-05-23 00:24:01 -0400 | [diff] [blame] | 5 | #include <array> |
| 6 | #include <string> |
| 7 | |
| 8 | using namespace std::string_literals; |
| 9 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 10 | namespace phosphor |
| 11 | { |
| 12 | namespace dbus |
| 13 | { |
| 14 | namespace monitoring |
| 15 | { |
| 16 | |
Brad Bishop | 0e7df13 | 2017-05-23 17:58:12 -0400 | [diff] [blame] | 17 | struct ConfigMeta |
| 18 | { |
| 19 | using Meta = std::array<std::string, ${len(meta)}>; |
| 20 | |
| 21 | static auto& get() |
| 22 | { |
| 23 | static const Meta meta = |
| 24 | { |
| 25 | % for m in meta: |
| 26 | "${m.name}"s, |
| 27 | % endfor |
| 28 | }; |
| 29 | return meta; |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | struct ConfigPaths |
| 34 | { |
| 35 | using Paths = std::array<std::string, ${len(paths)}>; |
| 36 | |
| 37 | static auto& get() |
| 38 | { |
| 39 | static const Paths paths = |
| 40 | { |
| 41 | % for p in paths: |
| 42 | "${p.name}"s, |
| 43 | % endfor |
| 44 | }; |
| 45 | return paths; |
| 46 | } |
| 47 | }; |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 48 | } // namespace monitoring |
| 49 | } // namespace dbus |
| 50 | } // namespace phosphor |