diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/generated.mako.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp index 2a9c2d1..856975f 100644 --- a/src/templates/generated.mako.hpp +++ b/src/templates/generated.mako.hpp @@ -14,6 +14,37 @@ namespace dbus namespace monitoring { +struct ConfigMeta +{ + using Meta = std::array<std::string, ${len(meta)}>; + + static auto& get() + { + static const Meta meta = + { +% for m in meta: + "${m.name}"s, +% endfor + }; + return meta; + } +}; + +struct ConfigPaths +{ + using Paths = std::array<std::string, ${len(paths)}>; + + static auto& get() + { + static const Paths paths = + { +% for p in paths: + "${p.name}"s, +% endfor + }; + return paths; + } +}; } // namespace monitoring } // namespace dbus } // namespace phosphor |