blob: 676d75415dd9d81e2dfbbbaf01df1639c3cf8553 [file] [log] [blame]
Matt Spinler84cd0a52017-08-04 08:53:30 -05001// 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 Power
19{
20namespace Fault
21{
22namespace Error
23{
Matt Spinlerfacfa902017-08-14 13:43:36 -050024 struct PowerOnFailure;
25} // namespace Error
26} // namespace Fault
27} // namespace Power
28} // namespace openbmc_project
29} // namespace xyz
30} // namespace sdbusplus
31
32namespace sdbusplus
33{
34namespace xyz
35{
36namespace openbmc_project
37{
38namespace Power
39{
40namespace Fault
41{
42namespace Error
43{
Matt Spinlerac4b52f2017-08-21 14:50:58 -050044 struct PowerSequencerPGOODFault;
45} // namespace Error
46} // namespace Fault
47} // namespace Power
48} // namespace openbmc_project
49} // namespace xyz
50} // namespace sdbusplus
51
52namespace sdbusplus
53{
54namespace xyz
55{
56namespace openbmc_project
57{
58namespace Power
59{
60namespace Fault
61{
62namespace Error
63{
64 struct PowerSequencerVoltageFault;
65} // namespace Error
66} // namespace Fault
67} // namespace Power
68} // namespace openbmc_project
69} // namespace xyz
70} // namespace sdbusplus
71
72namespace sdbusplus
73{
74namespace xyz
75{
76namespace openbmc_project
77{
78namespace Power
79{
80namespace Fault
81{
82namespace Error
83{
84 struct PowerSequencerFault;
85} // namespace Error
86} // namespace Fault
87} // namespace Power
88} // namespace openbmc_project
89} // namespace xyz
90} // namespace sdbusplus
91
92namespace sdbusplus
93{
94namespace xyz
95{
96namespace openbmc_project
97{
98namespace Power
99{
100namespace Fault
101{
102namespace Error
103{
Matt Spinler84cd0a52017-08-04 08:53:30 -0500104 struct Shutdown;
105} // namespace Error
106} // namespace Fault
107} // namespace Power
108} // namespace openbmc_project
109} // namespace xyz
110} // namespace sdbusplus
111
112
113namespace phosphor
114{
115
116namespace logging
117{
118
119namespace xyz
120{
121namespace openbmc_project
122{
123namespace Power
124{
125namespace Fault
126{
127namespace _Shutdown
128{
129
130
131} // namespace _Shutdown
132
133struct Shutdown
134{
135 static constexpr auto L = level::ERR;
136 using metadata_types = std::tuple<>;
137
138};
139
140} // namespace Fault
141} // namespace Power
142} // namespace openbmc_project
143} // namespace xyz
144
145
146namespace details
147{
148
149template <>
150struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown>
151{
152 using type = xyz::openbmc_project::Power::Fault::Shutdown;
153};
154
155}
156
Matt Spinlerfacfa902017-08-14 13:43:36 -0500157namespace xyz
158{
159namespace openbmc_project
160{
161namespace Power
162{
163namespace Fault
164{
165namespace _PowerOnFailure
166{
167
168
169} // namespace _PowerOnFailure
170
171struct PowerOnFailure
172{
173 static constexpr auto L = level::ERR;
174 using metadata_types = std::tuple<>;
175
176};
177
178} // namespace Fault
179} // namespace Power
180} // namespace openbmc_project
181} // namespace xyz
182
183
184namespace details
185{
186
187template <>
188struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
189{
190 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
191};
192
193}
194
Matt Spinlerac4b52f2017-08-21 14:50:58 -0500195namespace xyz
196{
197namespace openbmc_project
198{
199namespace Power
200{
201namespace Fault
202{
203namespace _PowerSequencerVoltageFault
204{
205
206struct RAIL
207{
208 static constexpr auto str = "RAIL=%d";
209 static constexpr auto str_short = "RAIL";
210 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
211 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {};
212 type _entry;
213};
214struct RAIL_NAME
215{
216 static constexpr auto str = "RAIL_NAME=%s";
217 static constexpr auto str_short = "RAIL_NAME";
218 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
219 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {};
220 type _entry;
221};
222struct RAW_STATUS
223{
224 static constexpr auto str = "RAW_STATUS=%s";
225 static constexpr auto str_short = "RAW_STATUS";
226 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
227 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
228 type _entry;
229};
230
231} // namespace _PowerSequencerVoltageFault
232
233struct PowerSequencerVoltageFault
234{
235 static constexpr auto L = level::ERR;
236 using RAIL = _PowerSequencerVoltageFault::RAIL;
237 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME;
238 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS;
239 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>;
240
241};
242
243} // namespace Fault
244} // namespace Power
245} // namespace openbmc_project
246} // namespace xyz
247
248
249namespace details
250{
251
252template <>
253struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault>
254{
255 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault;
256};
257
258}
259
260namespace xyz
261{
262namespace openbmc_project
263{
264namespace Power
265{
266namespace Fault
267{
268namespace _PowerSequencerPGOODFault
269{
270
271struct INPUT_NUM
272{
273 static constexpr auto str = "INPUT_NUM=%d";
274 static constexpr auto str_short = "INPUT_NUM";
275 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>;
276 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {};
277 type _entry;
278};
279struct INPUT_NAME
280{
281 static constexpr auto str = "INPUT_NAME=%s";
282 static constexpr auto str_short = "INPUT_NAME";
283 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
284 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {};
285 type _entry;
286};
287struct RAW_STATUS
288{
289 static constexpr auto str = "RAW_STATUS=%s";
290 static constexpr auto str_short = "RAW_STATUS";
291 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
292 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
293 type _entry;
294};
295
296} // namespace _PowerSequencerPGOODFault
297
298struct PowerSequencerPGOODFault
299{
300 static constexpr auto L = level::ERR;
301 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM;
302 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME;
303 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS;
304 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>;
305
306};
307
308} // namespace Fault
309} // namespace Power
310} // namespace openbmc_project
311} // namespace xyz
312
313
314namespace details
315{
316
317template <>
318struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault>
319{
320 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault;
321};
322
323}
324
325namespace xyz
326{
327namespace openbmc_project
328{
329namespace Power
330{
331namespace Fault
332{
333namespace _PowerSequencerFault
334{
335
336struct RAW_STATUS
337{
338 static constexpr auto str = "RAW_STATUS=%s";
339 static constexpr auto str_short = "RAW_STATUS";
340 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
341 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {};
342 type _entry;
343};
344
345} // namespace _PowerSequencerFault
346
347struct PowerSequencerFault
348{
349 static constexpr auto L = level::ERR;
350 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS;
351 using metadata_types = std::tuple<RAW_STATUS>;
352
353};
354
355} // namespace Fault
356} // namespace Power
357} // namespace openbmc_project
358} // namespace xyz
359
360
361namespace details
362{
363
364template <>
365struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault>
366{
367 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault;
368};
369
370}
371
Matt Spinler84cd0a52017-08-04 08:53:30 -0500372
373} // namespace logging
374
375} // namespace phosphor