summaryrefslogtreecommitdiffstats
path: root/occ_sensor.mako.hpp
blob: 19c785fc2f1adbf067e511fce37bba60ab7645e5 (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
## 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 <map>
#include <string>
#include <tuple>

namespace open_power
{
namespace occ
{

using instanceID = int;
using sensorID = uint8_t;
using sensorName = std::string;
using sensorDefs = std::tuple<sensorID, sensorName>;
const std::map<instanceID, sensorDefs> Status::sensorMap = {
\
% for occ in occDict:
<%
    instance = occ.get("Instance")
    id = occ.get("SensorID")
    name = occ.get("SensorName")
%>\
\
    { ${instance}, { ${id}, "${name}" }},\

% endfor
};

} // namespace occ
} // namespace open_power
OpenPOWER on IntegriCloud