blob: 12d783b4a8622e1ba92288572d5d355df50552a6 [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 Bishop65ffffa2016-11-29 12:31:31 -050023 details::MakeInterface<
Brad Bishop451f8d92016-11-21 14:15:19 -050024 details::ServerObject<
Brad Bishop22cfbe62016-11-30 13:25:10 -050025 ${i.namespace()}>>::make,
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050026 },
27% endfor
28};
29
Brad Bishop92665b22016-10-26 20:51:16 -050030const Manager::Events Manager::_events{
31% for e in events:
32 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050033 % if e.description:
34 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050035 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050036 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050037 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050038%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050039};
40
41} // namespace manager
42} // namespace inventory
43} // namespace phosphor