1*14c4797cSPatrick Williams#include <${events.headerFile("event")}>
2*14c4797cSPatrick Williams#include <nlohmann/json.hpp>
3*14c4797cSPatrick Williams
4*14c4797cSPatrick Williams%if events.errors:
5*14c4797cSPatrick Williams
6*14c4797cSPatrick Williamsnamespace sdbusplus::error::${events.cppNamespacedClass()}
7*14c4797cSPatrick Williams{
8*14c4797cSPatrick Williams% for e in events.errors:
9*14c4797cSPatrick Williams
10*14c4797cSPatrick Williams${events.render(loader, "event.cpp.mako", events=events, event=e)}\
11*14c4797cSPatrick Williams% endfor
12*14c4797cSPatrick Williams
13*14c4797cSPatrick Williams} // namespace sdbusplus::error::${events.cppNamespacedClass()}
14*14c4797cSPatrick Williams%endif
15*14c4797cSPatrick Williams%if events.errors:
16*14c4797cSPatrick Williams
17*14c4797cSPatrick Williamsnamespace sdbusplus::event::${events.cppNamespacedClass()}
18*14c4797cSPatrick Williams{
19*14c4797cSPatrick Williams% for e in events.events:
20*14c4797cSPatrick Williams
21*14c4797cSPatrick Williams${events.render(loader, "event.cpp.mako", events=events, event=e)}\
22*14c4797cSPatrick Williams% endfor
23*14c4797cSPatrick Williams
24*14c4797cSPatrick Williams} // namespace sdbusplus::event::${events.cppNamespacedClass()}
25*14c4797cSPatrick Williams%endif
26