blob: aa8d581bdda434ce69b7f27c02f7517b8f0e6357 [file] [log] [blame]
Lei YU23d06af2017-07-11 17:22:17 +08001// 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
12namespace sdbusplus
13{
14namespace xyz
15{
16namespace openbmc_project
17{
18namespace Time
19{
20namespace Internal
21{
22namespace 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
33namespace phosphor
34{
35
36namespace logging
37{
38
39namespace xyz
40{
41namespace openbmc_project
42{
43namespace Time
44{
45namespace Internal
46{
47namespace _MethodError
48{
49
50struct 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};
58struct 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};
66struct 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};
74struct 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
85struct 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
102namespace details
103{
104
105template <>
106struct 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