Adriana Kobylak | 5933433 | 2017-02-14 16:00:15 -0600 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
| 5 | #include <map> |
| 6 | #include <string> |
| 7 | #include <tuple> |
| 8 | #include <type_traits> |
| 9 | #include <vector> |
| 10 | #include "log.hpp" |
| 11 | |
| 12 | namespace phosphor |
| 13 | { |
| 14 | |
| 15 | namespace logging |
| 16 | { |
| 17 | |
| 18 | std::map<std::string,std::vector<std::string>> g_errMetaMapHostEvent = { |
| 19 | {"org.open_power.Error.Host.Event.Event",{"ESEL"}}, |
| 20 | }; |
| 21 | |
| 22 | std::map<std::string,level> g_errLevelMapHostEvent = { |
| 23 | {"org.open_power.Error.Host.Event.Event",level::INFO}, |
| 24 | }; |
| 25 | |
| 26 | namespace org |
| 27 | { |
| 28 | namespace open_power |
| 29 | { |
| 30 | namespace Error |
| 31 | { |
| 32 | namespace Host |
| 33 | { |
| 34 | namespace _Event |
| 35 | { |
| 36 | struct ESEL |
| 37 | { |
| 38 | static constexpr auto str = "ESEL=%s"; |
| 39 | static constexpr auto str_short = "ESEL"; |
| 40 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 41 | explicit constexpr ESEL(const char* a) : _entry(entry(str, a)) {}; |
| 42 | type _entry; |
| 43 | }; |
| 44 | |
| 45 | } // namespace _Event |
| 46 | |
| 47 | struct Event |
| 48 | { |
| 49 | static constexpr auto err_code = "org.open_power.Error.Host.Event.Event"; |
| 50 | static constexpr auto err_msg = "A host system event was received"; |
| 51 | static constexpr auto L = level::INFO; |
| 52 | using ESEL = _Event::ESEL; |
| 53 | using metadata_types = std::tuple<ESEL>; |
| 54 | }; |
| 55 | } // namespace Host |
| 56 | } // namespace Error |
| 57 | } // namespace open_power |
| 58 | } // namespace org |
| 59 | } // namespace logging |
| 60 | } // namespace phosphor |