xref: /openbmc/phosphor-inventory-manager/generated.cpp.mako (revision b3d4f234d19258eb35c360b9ce28a7c32bf7d1c5)
1## 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.
4#include "config.h"
5#include "manager.hpp"
6#include "utils.hpp"
7#include "functor.hpp"
8% for i in interfaces:
9#include <${i.header()}>
10% endfor
11#include "gen_serialization.hpp"
12
13namespace phosphor
14{
15namespace inventory
16{
17namespace manager
18{
19
20using namespace std::literals::string_literals;
21
22const Manager::Makers Manager::_makers{
23% for i in interfaces:
24    {
25        "${str(i)}",
26        std::make_tuple(
27            MakeInterface<
28                ServerObject<
29                    ${i.namespace()}>>::op,
30            AssignInterface<
31                ServerObject<
32                    ${i.namespace()}>>::op,
33            SerializeInterface<
34                ServerObject<
35                    ${i.namespace()}>, SerialOps>::op,
36            DeserializeInterface<
37                ServerObject<
38                    ${i.namespace()}>, SerialOps>::op
39#ifdef CREATE_ASSOCIATIONS
40            , GetPropertyValue<
41                ServerObject<
42                    ${i.namespace()}>>::op
43#endif
44        )
45    },
46% endfor
47};
48
49const Manager::Events Manager::_events{
50% for e in events:
51    {
52    % if e.description:
53        // ${e.description.strip()}
54    % endif
55        ${e.call(loader, indent=indent +2)},
56    },
57%endfor
58};
59
60} // namespace manager
61} // namespace inventory
62} // namespace phosphor
63