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 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 5 | #include <phosphor-logging/elog.hpp> |
| 6 | #include <phosphor-logging/log.hpp> |
| 7 | #include <sdbusplus/exception.hpp> |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <tuple> |
| 10 | #include <type_traits> |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 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 | { |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 24 | struct Event; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 25 | } // namespace Error |
| 26 | } // namespace Metrics |
| 27 | } // namespace OCC |
| 28 | } // namespace open_power |
| 29 | } // namespace org |
| 30 | } // namespace sdbusplus |
| 31 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 32 | namespace phosphor |
| 33 | { |
| 34 | |
| 35 | namespace logging |
| 36 | { |
| 37 | |
| 38 | namespace org |
| 39 | { |
| 40 | namespace open_power |
| 41 | { |
| 42 | namespace OCC |
| 43 | { |
| 44 | namespace Metrics |
| 45 | { |
| 46 | namespace _Event |
| 47 | { |
| 48 | |
| 49 | struct ESEL |
| 50 | { |
| 51 | static constexpr auto str = "ESEL=%s"; |
| 52 | static constexpr auto str_short = "ESEL"; |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 53 | using type = std::tuple<std::decay_t<decltype(str)>, const char*>; |
| 54 | explicit constexpr ESEL(const char* a) : _entry(entry(str, a)){}; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 55 | type _entry; |
| 56 | }; |
| 57 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 58 | } // namespace _Event |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 59 | |
| 60 | struct Event |
| 61 | { |
| 62 | static constexpr auto L = level::INFO; |
| 63 | using ESEL = _Event::ESEL; |
| 64 | using metadata_types = std::tuple<ESEL>; |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | } // namespace Metrics |
| 68 | } // namespace OCC |
| 69 | } // namespace open_power |
| 70 | } // namespace org |
| 71 | |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 72 | namespace details |
| 73 | { |
| 74 | |
| 75 | template <> |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 76 | struct map_exception_type< |
| 77 | sdbusplus::org::open_power::OCC::Metrics::Error::Event> |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 78 | { |
| 79 | using type = org::open_power::OCC::Metrics::Event; |
| 80 | }; |
| 81 | |
Patrick Venture | 02261c0 | 2018-10-31 15:16:23 -0700 | [diff] [blame^] | 82 | } // namespace details |
Tom Joseph | 56c534b | 2017-10-17 12:38:42 +0530 | [diff] [blame] | 83 | |
| 84 | } // namespace logging |
| 85 | |
| 86 | } // namespace phosphor |