Lei YU | 23d06af | 2017-07-11 17:22:17 +0800 | [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 xyz |
| 15 | { |
| 16 | namespace openbmc_project |
| 17 | { |
| 18 | namespace Time |
| 19 | { |
| 20 | namespace Internal |
| 21 | { |
| 22 | namespace Error |
| 23 | { |
| 24 | struct MethodError; |
| 25 | } // namespace Error |
| 26 | } // namespace Internal |
| 27 | } // namespace Time |
| 28 | } // namespace openbmc_project |
| 29 | } // namespace xyz |
| 30 | } // namespace sdbusplus |
| 31 | |
| 32 | |
| 33 | namespace phosphor |
| 34 | { |
| 35 | |
| 36 | namespace logging |
| 37 | { |
| 38 | |
| 39 | namespace xyz |
| 40 | { |
| 41 | namespace openbmc_project |
| 42 | { |
| 43 | namespace Time |
| 44 | { |
| 45 | namespace Internal |
| 46 | { |
| 47 | namespace _MethodError |
| 48 | { |
| 49 | |
| 50 | struct METHOD_NAME |
| 51 | { |
| 52 | static constexpr auto str = "METHOD_NAME=%s"; |
| 53 | static constexpr auto str_short = "METHOD_NAME"; |
| 54 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 55 | explicit constexpr METHOD_NAME(const char* a) : _entry(entry(str, a)) {}; |
| 56 | type _entry; |
| 57 | }; |
| 58 | struct PATH |
| 59 | { |
| 60 | static constexpr auto str = "PATH=%s"; |
| 61 | static constexpr auto str_short = "PATH"; |
| 62 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 63 | explicit constexpr PATH(const char* a) : _entry(entry(str, a)) {}; |
| 64 | type _entry; |
| 65 | }; |
| 66 | struct INTERFACE |
| 67 | { |
| 68 | static constexpr auto str = "INTERFACE=%s"; |
| 69 | static constexpr auto str_short = "INTERFACE"; |
| 70 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 71 | explicit constexpr INTERFACE(const char* a) : _entry(entry(str, a)) {}; |
| 72 | type _entry; |
| 73 | }; |
| 74 | struct MISC |
| 75 | { |
| 76 | static constexpr auto str = "MISC=%s"; |
| 77 | static constexpr auto str_short = "MISC"; |
| 78 | using type = std::tuple<std::decay_t<decltype(str)>,const char*>; |
| 79 | explicit constexpr MISC(const char* a) : _entry(entry(str, a)) {}; |
| 80 | type _entry; |
| 81 | }; |
| 82 | |
| 83 | } // namespace _MethodError |
| 84 | |
| 85 | struct MethodError |
| 86 | { |
| 87 | static constexpr auto L = level::ERR; |
| 88 | using METHOD_NAME = _MethodError::METHOD_NAME; |
| 89 | using PATH = _MethodError::PATH; |
| 90 | using INTERFACE = _MethodError::INTERFACE; |
| 91 | using MISC = _MethodError::MISC; |
| 92 | using metadata_types = std::tuple<METHOD_NAME, PATH, INTERFACE, MISC>; |
| 93 | |
| 94 | }; |
| 95 | |
| 96 | } // namespace Internal |
| 97 | } // namespace Time |
| 98 | } // namespace openbmc_project |
| 99 | } // namespace xyz |
| 100 | |
| 101 | |
| 102 | namespace details |
| 103 | { |
| 104 | |
| 105 | template <> |
| 106 | struct map_exception_type<sdbusplus::xyz::openbmc_project::Time::Internal::Error::MethodError> |
| 107 | { |
| 108 | using type = xyz::openbmc_project::Time::Internal::MethodError; |
| 109 | }; |
| 110 | |
| 111 | } |
| 112 | |
| 113 | |
| 114 | } // namespace logging |
| 115 | |
| 116 | } // namespace phosphor |