Deepak Kodihalli | bdfd123 | 2017-02-17 00:29:02 -0600 | [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 | // WARNING: Generated header. Do not edit! |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <string> |
| 8 | #include <map> |
| 9 | #include "types.hpp" |
| 10 | |
| 11 | namespace openpower |
| 12 | { |
| 13 | namespace vpd |
| 14 | { |
| 15 | namespace inventory |
| 16 | { |
| 17 | namespace extra |
| 18 | { |
| 19 | |
| 20 | const std::map<Path, InterfaceMap> objects = { |
| 21 | % for path in dict.iterkeys(): |
| 22 | <% |
| 23 | interfaces = dict[path] |
| 24 | %>\ |
| 25 | {"${path}",{ |
| 26 | % for interface,properties in interfaces.iteritems(): |
| 27 | {"${interface}",{ |
| 28 | % for property,value in properties.iteritems(): |
| 29 | {"${property}", ${value}}, |
| 30 | % endfor |
| 31 | }}, |
| 32 | % endfor |
| 33 | }}, |
| 34 | % endfor |
| 35 | }; |
| 36 | |
| 37 | } // namespace extra |
| 38 | } // namespace inventory |
| 39 | } // namespace vpd |
| 40 | } // namespace openpower |