blob: 856975f641f664ab80948f07e9aee9932b9304de [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 Bishop870c3fc2017-05-22 23:23:13 -040048} // namespace monitoring
49} // namespace dbus
50} // namespace phosphor