blob: 7a9a38eb18bc384067fc03d763e5efe576a765c5 [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 Bishop79ccaf72017-01-22 16:00:50 -050027 ${i.namespace()}>>::make,
28 MakeInterface<
29 ServerObject<
30 ${i.namespace()}>>::assign
Brad Bishop90c30bc2017-01-22 16:40:47 -050031 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050032 },
33% endfor
34};
35
Brad Bishop92665b22016-10-26 20:51:16 -050036const Manager::Events Manager::_events{
37% for e in events:
38 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050039 % if e.description:
40 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050041 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050042 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050043 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050044%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050045};
46
47} // namespace manager
48} // namespace inventory
49} // namespace phosphor