Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 1 | // This file was autogenerated. Do not edit! |
| 2 | // See elog-gen.py for more details |
| 3 | #pragma once |
| 4 | |
| 5 | #include <string> |
| 6 | #include <tuple> |
| 7 | #include <type_traits> |
| 8 | #include <sdbusplus/exception.hpp> |
| 9 | #include <phosphor-logging/log.hpp> |
| 10 | #include <phosphor-logging/elog.hpp> |
| 11 | |
| 12 | namespace sdbusplus |
| 13 | { |
| 14 | namespace org |
| 15 | { |
| 16 | namespace open_power |
| 17 | { |
| 18 | namespace OCC |
| 19 | { |
| 20 | namespace Metrics |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
| 24 | struct Event; |
| 25 | } // namespace Error |
| 26 | } // namespace Metrics |
| 27 | } // namespace OCC |
| 28 | } // namespace open_power |
| 29 | } // namespace org |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | |
| 33 | namespace phosphor |
| 34 | { |
| 35 | |
| 36 | namespace logging |
| 37 | { |
| 38 | |
| 39 | namespace org |
| 40 | { |
| 41 | namespace open_power |
| 42 | { |
| 43 | namespace OCC |
| 44 | { |
| 45 | namespace Metrics |
| 46 | { |
| 47 | namespace _Event |
| 48 | { |
| 49 | |
| 50 | struct ESEL |
| 51 | { |
| 52 | static constexpr auto str = "ESEL=%s"; |
| 53 | static constexpr auto str_short = "ESEL"; |
| 54 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 55 | explicit constexpr ESEL(const char* a) : _entry(entry(str, a)) {}; |
| 56 | type _entry; |
| 57 | }; |
| 58 | |
| 59 | } // namespace _Event |
| 60 | |
| 61 | struct Event |
| 62 | { |
| 63 | static constexpr auto L = level::INFO; |
| 64 | using ESEL = _Event::ESEL; |
| 65 | using metadata_types = std::tuple<ESEL>; |
| 66 | |
| 67 | }; |
| 68 | |
| 69 | } // namespace Metrics |
| 70 | } // namespace OCC |
| 71 | } // namespace open_power |
| 72 | } // namespace org |
| 73 | |
| 74 | |
| 75 | namespace details |
| 76 | { |
| 77 | |
| 78 | template <> |
| 79 | struct map_exception_type<sdbusplus::org::open_power::OCC::Metrics::Error::Event> |
| 80 | { |
| 81 | using type = org::open_power::OCC::Metrics::Event; |
| 82 | }; |
| 83 | |
| 84 | } |
| 85 | |
| 86 | } // namespace logging |
| 87 | |
| 88 | } // namespace phosphor |