blob: 235e58a7a99a6eeece8f8c53ccb7f3127829c525 [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 Bishopc1f47982017-02-09 01:27:38 -05006#include "functor.hpp"
Brad Bishop5fbaa7f2016-10-31 10:42:41 -05007% for i in interfaces:
Brad Bishop22cfbe62016-11-30 13:25:10 -05008#include <${i.header()}>
Brad Bishop5fbaa7f2016-10-31 10:42:41 -05009% endfor
Brad Bishop92665b22016-10-26 20:51:16 -050010
11namespace phosphor
12{
13namespace inventory
14{
15namespace manager
16{
17
Brad Bishopc93bcc92017-01-21 16:23:39 -050018using namespace std::literals::string_literals;
19
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050020const Manager::Makers Manager::_makers{
21% for i in interfaces:
22 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050023 "${str(i)}",
Brad Bishop90c30bc2017-01-22 16:40:47 -050024 std::make_tuple(
Brad Bishop12f8a3c2017-02-09 00:02:00 -050025 MakeInterface<
26 ServerObject<
Brad Bishop90c30bc2017-01-22 16:40:47 -050027 ${i.namespace()}>>::make
28 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050029 },
30% endfor
31};
32
Brad Bishop92665b22016-10-26 20:51:16 -050033const Manager::Events Manager::_events{
34% for e in events:
35 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050036 % if e.description:
37 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050038 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050039 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050040 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050041%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050042};
43
44} // namespace manager
45} // namespace inventory
46} // namespace phosphor