summaryrefslogtreecommitdiffstats
path: root/tools/phosphor-logging/templates/elog-process-metadata.mako.cpp
blob: a846c2f09cc5391904e7e8e583e38c64987a2a1a (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
## Note that this file is not auto generated, it is what generates the
## elog-metadata-postprocess.cpp file
// This file was autogenerated.  Do not edit!
// See elog-gen.py for more details

#include <string>
#include <vector>
#include <functional>
#include <phosphor-logging/elog-errors.hpp>
#include "elog_meta.hpp"

using namespace phosphor::logging;
using namespace example::xyz::openbmc_project::Example::Elog;
using namespace std::placeholders;

extern const std::map<metadata::Metadata,
                      std::function<metadata::associations::Type>> meta = {
    % for key, value in metadata_process.items():
<%
        type = value.replace(".", "::")
%>\
    {"${key}", metadata::associations::build<${type}>},
    % endfor
};
OpenPOWER on IntegriCloud