blob: fee87457e9f73695a1daff9693525b382435b84a [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 Bishop02763c62018-12-12 22:02:07 -050028 ${i.namespace()}>>::op,
29 AssignInterface<
Brad Bishop79ccaf72017-01-22 16:00:50 -050030 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050031 ${i.namespace()}>>::op,
32 SerializeInterface<
Deepak Kodihalli6620e982017-08-05 13:09:54 -050033 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050034 ${i.namespace()}>, SerialOps>::op,
35 DeserializeInterface<
Deepak Kodihallib28990f2017-08-08 07:19:34 -050036 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050037 ${i.namespace()}>, SerialOps>::op
Brad Bishop90c30bc2017-01-22 16:40:47 -050038 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050039 },
40% endfor
41};
42
Brad Bishop92665b22016-10-26 20:51:16 -050043const Manager::Events Manager::_events{
44% for e in events:
45 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050046 % if e.description:
47 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050048 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050049 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050050 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050051%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050052};
53
54} // namespace manager
55} // namespace inventory
56} // namespace phosphor