blob: 7eeb8c4b7421da2af8e0f5e2401b4e71d7f5d72a [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
Deepak Kodihalli6620e982017-08-05 13:09:54 -050010#include "gen_serialization.hpp"
Brad Bishop92665b22016-10-26 20:51:16 -050011
12namespace phosphor
13{
14namespace inventory
15{
16namespace manager
17{
18
Brad Bishopc93bcc92017-01-21 16:23:39 -050019using namespace std::literals::string_literals;
20
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050021const Manager::Makers Manager::_makers{
22% for i in interfaces:
23 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050024 "${str(i)}",
Brad Bishop90c30bc2017-01-22 16:40:47 -050025 std::make_tuple(
Brad Bishop12f8a3c2017-02-09 00:02:00 -050026 MakeInterface<
27 ServerObject<
Brad Bishop79ccaf72017-01-22 16:00:50 -050028 ${i.namespace()}>>::make,
29 MakeInterface<
30 ServerObject<
Deepak Kodihalli6620e982017-08-05 13:09:54 -050031 ${i.namespace()}>>::assign,
32 MakeInterface<
33 ServerObject<
34 ${i.namespace()}>>::serialize
Brad Bishop90c30bc2017-01-22 16:40:47 -050035 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050036 },
37% endfor
38};
39
Brad Bishop92665b22016-10-26 20:51:16 -050040const Manager::Events Manager::_events{
41% for e in events:
42 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050043 % if e.description:
44 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050045 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050046 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050047 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050048%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050049};
50
51} // namespace manager
52} // namespace inventory
53} // namespace phosphor