blob: 7c6e5275a86ab9fe5d86177b209771335fa6026e [file] [log] [blame]
Brad Bishop870c3fc2017-05-22 23:23:13 -04001## 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 Bishop05b0c1e2017-05-23 00:24:01 -04005#include <array>
6#include <string>
7
8using namespace std::string_literals;
9
Brad Bishop870c3fc2017-05-22 23:23:13 -040010namespace phosphor
11{
12namespace dbus
13{
14namespace monitoring
15{
16
Brad Bishop0e7df132017-05-23 17:58:12 -040017struct 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
33struct 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 Bishope73b2c32017-05-23 18:01:54 -040048
49struct 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
65struct 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};
Brad Bishop870c3fc2017-05-22 23:23:13 -040080} // namespace monitoring
81} // namespace dbus
82} // namespace phosphor