Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 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. | ||||
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 4 | #include "manager.hpp" |
Brad Bishop | 65ffffa | 2016-11-29 12:31:31 -0500 | [diff] [blame] | 5 | #include "utils.hpp" |
Brad Bishop | c1f4798 | 2017-02-09 01:27:38 -0500 | [diff] [blame] | 6 | #include "functor.hpp" |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 7 | % for i in interfaces: |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 8 | #include <${i.header()}> |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 9 | % endfor |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 10 | |
11 | namespace phosphor | ||||
12 | { | ||||
13 | namespace inventory | ||||
14 | { | ||||
15 | namespace manager | ||||
16 | { | ||||
17 | |||||
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 18 | using namespace std::literals::string_literals; |
19 | |||||
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 20 | const Manager::Makers Manager::_makers{ |
21 | % for i in interfaces: | ||||
22 | { | ||||
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 23 | "${str(i)}", |
Brad Bishop | 90c30bc | 2017-01-22 16:40:47 -0500 | [diff] [blame] | 24 | std::make_tuple( |
Brad Bishop | 12f8a3c | 2017-02-09 00:02:00 -0500 | [diff] [blame] | 25 | MakeInterface< |
26 | ServerObject< | ||||
Brad Bishop | 90c30bc | 2017-01-22 16:40:47 -0500 | [diff] [blame] | 27 | ${i.namespace()}>>::make |
28 | ) | ||||
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 29 | }, |
30 | % endfor | ||||
31 | }; | ||||
32 | |||||
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 33 | const Manager::Events Manager::_events{ |
34 | % for e in events: | ||||
35 | { | ||||
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 36 | % if e.description: |
37 | // ${e.description.strip()} | ||||
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 38 | % endif |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 39 | ${e.call(loader, indent=indent +2)}, |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 40 | }, |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 41 | %endfor |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 42 | }; |
43 | |||||
44 | } // namespace manager | ||||
45 | } // namespace inventory | ||||
46 | } // namespace phosphor |