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. |
Matt Spinler | 59521e8 | 2021-02-11 13:41:06 -0600 | [diff] [blame] | 4 | #include "config.h" |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 5 | #include "manager.hpp" |
Brad Bishop | 65ffffa | 2016-11-29 12:31:31 -0500 | [diff] [blame] | 6 | #include "utils.hpp" |
Brad Bishop | c1f4798 | 2017-02-09 01:27:38 -0500 | [diff] [blame] | 7 | #include "functor.hpp" |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 8 | % for i in interfaces: |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 9 | #include <${i.header()}> |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 10 | % endfor |
Deepak Kodihalli | 6620e98 | 2017-08-05 13:09:54 -0500 | [diff] [blame] | 11 | #include "gen_serialization.hpp" |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 12 | |
| 13 | namespace phosphor |
| 14 | { |
| 15 | namespace inventory |
| 16 | { |
| 17 | namespace manager |
| 18 | { |
| 19 | |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 20 | using namespace std::literals::string_literals; |
| 21 | |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 22 | const Manager::Makers Manager::_makers{ |
| 23 | % for i in interfaces: |
| 24 | { |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 25 | "${str(i)}", |
Brad Bishop | 90c30bc | 2017-01-22 16:40:47 -0500 | [diff] [blame] | 26 | std::make_tuple( |
Brad Bishop | 12f8a3c | 2017-02-09 00:02:00 -0500 | [diff] [blame] | 27 | MakeInterface< |
| 28 | ServerObject< |
Brad Bishop | 02763c6 | 2018-12-12 22:02:07 -0500 | [diff] [blame] | 29 | ${i.namespace()}>>::op, |
| 30 | AssignInterface< |
Brad Bishop | 79ccaf7 | 2017-01-22 16:00:50 -0500 | [diff] [blame] | 31 | ServerObject< |
Brad Bishop | 02763c6 | 2018-12-12 22:02:07 -0500 | [diff] [blame] | 32 | ${i.namespace()}>>::op, |
| 33 | SerializeInterface< |
Deepak Kodihalli | 6620e98 | 2017-08-05 13:09:54 -0500 | [diff] [blame] | 34 | ServerObject< |
Brad Bishop | 02763c6 | 2018-12-12 22:02:07 -0500 | [diff] [blame] | 35 | ${i.namespace()}>, SerialOps>::op, |
| 36 | DeserializeInterface< |
Deepak Kodihalli | b28990f | 2017-08-08 07:19:34 -0500 | [diff] [blame] | 37 | ServerObject< |
Brad Bishop | 02763c6 | 2018-12-12 22:02:07 -0500 | [diff] [blame] | 38 | ${i.namespace()}>, SerialOps>::op |
Matt Spinler | 59521e8 | 2021-02-11 13:41:06 -0600 | [diff] [blame] | 39 | #ifdef CREATE_ASSOCIATIONS |
| 40 | , GetPropertyValue< |
| 41 | ServerObject< |
| 42 | ${i.namespace()}>>::op |
| 43 | #endif |
Brad Bishop | 90c30bc | 2017-01-22 16:40:47 -0500 | [diff] [blame] | 44 | ) |
Brad Bishop | 5fbaa7f | 2016-10-31 10:42:41 -0500 | [diff] [blame] | 45 | }, |
| 46 | % endfor |
| 47 | }; |
| 48 | |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 49 | const Manager::Events Manager::_events{ |
| 50 | % for e in events: |
| 51 | { |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 52 | % if e.description: |
| 53 | // ${e.description.strip()} |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 54 | % endif |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 55 | ${e.call(loader, indent=indent +2)}, |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 56 | }, |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 57 | %endfor |
Brad Bishop | 92665b2 | 2016-10-26 20:51:16 -0500 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | } // namespace manager |
| 61 | } // namespace inventory |
| 62 | } // namespace phosphor |