Deepak Kodihalli | 38f6974 | 2017-02-28 02:18:09 -0600 | [diff] [blame] | 1 | ## Note that this file is not auto generated, it is what generates the |
| 2 | ## elog-metadata-postprocess.cpp file |
| 3 | // This file was autogenerated. Do not edit! |
| 4 | // See elog-gen.py for more details |
| 5 | |
| 6 | #include <string> |
| 7 | #include <vector> |
| 8 | #include <functional> |
| 9 | #include <phosphor-logging/elog-errors.hpp> |
| 10 | #include "elog_meta.hpp" |
| 11 | |
| 12 | using namespace phosphor::logging; |
| 13 | using namespace example::xyz::openbmc_project::Example::Elog; |
| 14 | using namespace std::placeholders; |
| 15 | |
| 16 | extern const std::map<metadata::Metadata, |
| 17 | std::function<metadata::associations::Type>> meta = { |
Patrick Williams | 50d5d26 | 2017-05-01 22:39:35 -0500 | [diff] [blame] | 18 | % for key, value in metadata_process.items(): |
Deepak Kodihalli | 38f6974 | 2017-02-28 02:18:09 -0600 | [diff] [blame] | 19 | <% |
| 20 | type = value.replace(".", "::") |
| 21 | %>\ |
| 22 | {"${key}", metadata::associations::build<${type}>}, |
| 23 | % endfor |
| 24 | }; |