blob: fe2c6cb82504615a240bf22bf7939e4f6a00eede [file] [log] [blame]
Brad Bishop92665b22016-10-26 20:51:16 -05001## This file is a template. The comment below is emitted
2## into the rendered file; feel free to edit this file.
3// This file was auto generated. Do not edit.
Brad Bishop92665b22016-10-26 20:51:16 -05004#include "manager.hpp"
Brad Bishop65ffffa2016-11-29 12:31:31 -05005#include "utils.hpp"
Brad Bishop5fbaa7f2016-10-31 10:42:41 -05006% for i in interfaces:
Brad Bishop22cfbe62016-11-30 13:25:10 -05007#include <${i.header()}>
Brad Bishop5fbaa7f2016-10-31 10:42:41 -05008% endfor
Brad Bishop92665b22016-10-26 20:51:16 -05009
10namespace phosphor
11{
12namespace inventory
13{
14namespace manager
15{
16
Brad Bishopc93bcc92017-01-21 16:23:39 -050017using namespace std::literals::string_literals;
18
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050019const Manager::Makers Manager::_makers{
20% for i in interfaces:
21 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050022 "${str(i)}",
Brad Bishop90c30bc2017-01-22 16:40:47 -050023 std::make_tuple(
Brad Bishop12f8a3c2017-02-09 00:02:00 -050024 MakeInterface<
25 ServerObject<
Brad Bishop90c30bc2017-01-22 16:40:47 -050026 ${i.namespace()}>>::make
27 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050028 },
29% endfor
30};
31
Brad Bishop92665b22016-10-26 20:51:16 -050032const Manager::Events Manager::_events{
33% for e in events:
34 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050035 % if e.description:
36 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050037 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050038 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050039 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050040%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050041};
42
43} // namespace manager
44} // namespace inventory
45} // namespace phosphor