blob: 4adb55e79223bf1897b0b58bd2fd83169947229e [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.
Matt Spinler59521e82021-02-11 13:41:06 -06004#include "config.h"
Brad Bishop92665b22016-10-26 20:51:16 -05005#include "manager.hpp"
Brad Bishop65ffffa2016-11-29 12:31:31 -05006#include "utils.hpp"
Brad Bishopc1f47982017-02-09 01:27:38 -05007#include "functor.hpp"
Brad Bishop5fbaa7f2016-10-31 10:42:41 -05008% for i in interfaces:
Brad Bishop22cfbe62016-11-30 13:25:10 -05009#include <${i.header()}>
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050010% endfor
Deepak Kodihalli6620e982017-08-05 13:09:54 -050011#include "gen_serialization.hpp"
Brad Bishop92665b22016-10-26 20:51:16 -050012
13namespace phosphor
14{
15namespace inventory
16{
17namespace manager
18{
19
Brad Bishopc93bcc92017-01-21 16:23:39 -050020using namespace std::literals::string_literals;
21
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050022const Manager::Makers Manager::_makers{
23% for i in interfaces:
24 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050025 "${str(i)}",
Brad Bishop90c30bc2017-01-22 16:40:47 -050026 std::make_tuple(
Brad Bishop12f8a3c2017-02-09 00:02:00 -050027 MakeInterface<
28 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050029 ${i.namespace()}>>::op,
30 AssignInterface<
Brad Bishop79ccaf72017-01-22 16:00:50 -050031 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050032 ${i.namespace()}>>::op,
33 SerializeInterface<
Deepak Kodihalli6620e982017-08-05 13:09:54 -050034 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050035 ${i.namespace()}>, SerialOps>::op,
36 DeserializeInterface<
Deepak Kodihallib28990f2017-08-08 07:19:34 -050037 ServerObject<
Brad Bishop02763c62018-12-12 22:02:07 -050038 ${i.namespace()}>, SerialOps>::op
Matt Spinler59521e82021-02-11 13:41:06 -060039#ifdef CREATE_ASSOCIATIONS
40 , GetPropertyValue<
41 ServerObject<
42 ${i.namespace()}>>::op
43#endif
Brad Bishop90c30bc2017-01-22 16:40:47 -050044 )
Brad Bishop5fbaa7f2016-10-31 10:42:41 -050045 },
46% endfor
47};
48
Brad Bishop92665b22016-10-26 20:51:16 -050049const Manager::Events Manager::_events{
50% for e in events:
51 {
Brad Bishop22cfbe62016-11-30 13:25:10 -050052 % if e.description:
53 // ${e.description.strip()}
Brad Bishop92665b22016-10-26 20:51:16 -050054 % endif
Brad Bishopc93bcc92017-01-21 16:23:39 -050055 ${e.call(loader, indent=indent +2)},
Brad Bishop92665b22016-10-26 20:51:16 -050056 },
Brad Bishop22cfbe62016-11-30 13:25:10 -050057%endfor
Brad Bishop92665b22016-10-26 20:51:16 -050058};
59
60} // namespace manager
61} // namespace inventory
62} // namespace phosphor