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