summaryrefslogtreecommitdiffstats
path: root/extra-properties.mako.hpp
blob: 6b006c2d3fb0728de92f77a048f77631ca79af25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## This file is a template.  The comment below is emitted
## into the rendered file; feel free to edit this file.
// WARNING: Generated header. Do not edit!

#pragma once

#include <string>
#include <map>
#include "types.hpp"

namespace openpower
{
namespace vpd
{
namespace inventory
{
namespace extra
{

const std::map<Path, InterfaceMap> objects = {
% for path in dict.iterkeys():
<%
    interfaces = dict[path]
%>\
    {"${path}",{
    % for interface,properties in interfaces.iteritems():
        {"${interface}",{
        % for property,value in properties.iteritems():
            {"${property}", ${value}},
        % endfor
        }},
    % endfor
    }},
% endfor
};

} // namespace extra
} // namespace inventory
} // namespace vpd
} // namespace openpower
OpenPOWER on IntegriCloud