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 5 #include <array> 6 #include <string> 7 8 using namespace std::string_literals; 9 10 namespace phosphor 11 { 12 namespace dbus 13 { 14 namespace monitoring 15 { 16 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 }; 48 49 struct ConfigInterfaces 50 { 51 using Interfaces = std::array<std::string, ${len(interfaces)}>; 52 53 static auto& get() 54 { 55 static const Interfaces interfaces = 56 { 57 % for i in interfaces: 58 "${i.name}"s, 59 % endfor 60 }; 61 return interfaces; 62 } 63 }; 64 65 struct ConfigProperties 66 { 67 using Properties = std::array<std::string, ${len(propertynames)}>; 68 69 static auto& get() 70 { 71 static const Properties properties = 72 { 73 % for p in propertynames: 74 "${p.name}"s, 75 % endfor 76 }; 77 return properties; 78 } 79 }; 80 } // namespace monitoring 81 } // namespace dbus 82 } // namespace phosphor 83