1 // This file was autogenerated.  Do not edit!
2 // See elog-gen.py for more details
3 #pragma once
4 
5 #include <phosphor-logging/elog.hpp>
6 #include <phosphor-logging/log.hpp>
7 #include <sdbusplus/exception.hpp>
8 #include <string>
9 #include <tuple>
10 #include <type_traits>
11 
12 namespace sdbusplus
13 {
14 namespace xyz
15 {
16 namespace openbmc_project
17 {
18 namespace Common
19 {
20 namespace Callout
21 {
22 namespace Error
23 {
24 struct GPIO;
25 } // namespace Error
26 } // namespace Callout
27 } // namespace Common
28 } // namespace openbmc_project
29 } // namespace xyz
30 } // namespace sdbusplus
31 
32 namespace sdbusplus
33 {
34 namespace org
35 {
36 namespace open_power
37 {
38 namespace Common
39 {
40 namespace Callout
41 {
42 namespace Error
43 {
44 struct Procedure;
45 } // namespace Error
46 } // namespace Callout
47 } // namespace Common
48 } // namespace open_power
49 } // namespace org
50 } // namespace sdbusplus
51 
52 namespace sdbusplus
53 {
54 namespace xyz
55 {
56 namespace openbmc_project
57 {
58 namespace Common
59 {
60 namespace Callout
61 {
62 namespace Error
63 {
64 struct Inventory;
65 } // namespace Error
66 } // namespace Callout
67 } // namespace Common
68 } // namespace openbmc_project
69 } // namespace xyz
70 } // namespace sdbusplus
71 
72 namespace sdbusplus
73 {
74 namespace xyz
75 {
76 namespace openbmc_project
77 {
78 namespace Common
79 {
80 namespace Callout
81 {
82 namespace Error
83 {
84 struct IIC;
85 } // namespace Error
86 } // namespace Callout
87 } // namespace Common
88 } // namespace openbmc_project
89 } // namespace xyz
90 } // namespace sdbusplus
91 
92 namespace sdbusplus
93 {
94 namespace org
95 {
96 namespace open_power
97 {
98 namespace OCC
99 {
100 namespace Metrics
101 {
102 namespace Error
103 {
104 struct Event;
105 } // namespace Error
106 } // namespace Metrics
107 } // namespace OCC
108 } // namespace open_power
109 } // namespace org
110 } // namespace sdbusplus
111 
112 namespace sdbusplus
113 {
114 namespace xyz
115 {
116 namespace openbmc_project
117 {
118 namespace Common
119 {
120 namespace Callout
121 {
122 namespace Error
123 {
124 struct Device;
125 } // namespace Error
126 } // namespace Callout
127 } // namespace Common
128 } // namespace openbmc_project
129 } // namespace xyz
130 } // namespace sdbusplus
131 
132 namespace sdbusplus
133 {
134 namespace org
135 {
136 namespace open_power
137 {
138 namespace Host
139 {
140 namespace Error
141 {
142 struct MaintenanceProcedure;
143 } // namespace Error
144 } // namespace Host
145 } // namespace open_power
146 } // namespace org
147 } // namespace sdbusplus
148 
149 namespace sdbusplus
150 {
151 namespace org
152 {
153 namespace open_power
154 {
155 namespace Host
156 {
157 namespace Error
158 {
159 struct Event;
160 } // namespace Error
161 } // namespace Host
162 } // namespace open_power
163 } // namespace org
164 } // namespace sdbusplus
165 
166 namespace sdbusplus
167 {
168 namespace xyz
169 {
170 namespace openbmc_project
171 {
172 namespace Common
173 {
174 namespace Callout
175 {
176 namespace Error
177 {
178 struct IPMISensor;
179 } // namespace Error
180 } // namespace Callout
181 } // namespace Common
182 } // namespace openbmc_project
183 } // namespace xyz
184 } // namespace sdbusplus
185 
186 namespace phosphor
187 {
188 
189 namespace logging
190 {
191 
192 namespace org
193 {
194 namespace open_power
195 {
196 namespace Common
197 {
198 namespace Callout
199 {
200 namespace _Procedure
201 {
202 
203 struct PROCEDURE
204 {
205     /*
206      * We can't use -fsanitize=undefined if we declare a
207      * 'static constexpr auto str' member, so don't. Instead, open-code the
208      * mako template lookups.
209      */
210     static constexpr auto str_short = "PROCEDURE";
211     using type = std::tuple<std::decay_t<decltype("PROCEDURE=%u")>, uint32_t>;
212     explicit constexpr PROCEDURE(uint32_t a) :
213         _entry(entry("PROCEDURE=%u", a)){};
214     type _entry;
215 };
216 
217 } // namespace _Procedure
218 
219 struct Procedure
220 {
221     static constexpr auto L = level::ERR;
222     using PROCEDURE = _Procedure::PROCEDURE;
223     using metadata_types = std::tuple<PROCEDURE>;
224 };
225 
226 } // namespace Callout
227 } // namespace Common
228 } // namespace open_power
229 } // namespace org
230 
231 namespace details
232 {
233 
234 template <>
235 struct map_exception_type<
236     sdbusplus::org::open_power::Common::Callout::Error::Procedure>
237 {
238     using type = org::open_power::Common::Callout::Procedure;
239 };
240 
241 } // namespace details
242 
243 namespace org
244 {
245 namespace open_power
246 {
247 namespace OCC
248 {
249 namespace Metrics
250 {
251 namespace _Event
252 {
253 
254 struct ESEL
255 {
256     /*
257      * We can't use -fsanitize=undefined if we declare a
258      * 'static constexpr auto str' member, so don't. Instead, open-code the
259      * mako template lookups.
260      */
261     static constexpr auto str_short = "ESEL";
262     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
263     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
264     type _entry;
265 };
266 
267 } // namespace _Event
268 
269 struct Event
270 {
271     static constexpr auto L = level::INFO;
272     using ESEL = _Event::ESEL;
273     using metadata_types = std::tuple<ESEL>;
274 };
275 
276 } // namespace Metrics
277 } // namespace OCC
278 } // namespace open_power
279 } // namespace org
280 
281 namespace details
282 {
283 
284 template <>
285 struct map_exception_type<
286     sdbusplus::org::open_power::OCC::Metrics::Error::Event>
287 {
288     using type = org::open_power::OCC::Metrics::Event;
289 };
290 
291 } // namespace details
292 
293 namespace xyz
294 {
295 namespace openbmc_project
296 {
297 namespace Common
298 {
299 namespace Callout
300 {
301 namespace _Device
302 {
303 
304 struct CALLOUT_ERRNO
305 {
306     /*
307      * We can't use -fsanitize=undefined if we declare a
308      * 'static constexpr auto str' member, so don't. Instead, open-code the
309      * mako template lookups.
310      */
311     static constexpr auto str_short = "CALLOUT_ERRNO";
312     using type =
313         std::tuple<std::decay_t<decltype("CALLOUT_ERRNO=%d")>, int32_t>;
314     explicit constexpr CALLOUT_ERRNO(int32_t a) :
315         _entry(entry("CALLOUT_ERRNO=%d", a)){};
316     type _entry;
317 };
318 struct CALLOUT_DEVICE_PATH
319 {
320     /*
321      * We can't use -fsanitize=undefined if we declare a
322      * 'static constexpr auto str' member, so don't. Instead, open-code the
323      * mako template lookups.
324      */
325     static constexpr auto str_short = "CALLOUT_DEVICE_PATH";
326     using type = std::tuple<std::decay_t<decltype("CALLOUT_DEVICE_PATH=%s")>,
327                             const char*>;
328     explicit constexpr CALLOUT_DEVICE_PATH(const char* a) :
329         _entry(entry("CALLOUT_DEVICE_PATH=%s", a)){};
330     type _entry;
331 };
332 
333 } // namespace _Device
334 
335 struct Device
336 {
337     static constexpr auto L = level::ERR;
338     using CALLOUT_ERRNO = _Device::CALLOUT_ERRNO;
339     using CALLOUT_DEVICE_PATH = _Device::CALLOUT_DEVICE_PATH;
340     using metadata_types = std::tuple<CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
341 };
342 
343 } // namespace Callout
344 } // namespace Common
345 } // namespace openbmc_project
346 } // namespace xyz
347 
348 namespace details
349 {
350 
351 template <>
352 struct map_exception_type<
353     sdbusplus::xyz::openbmc_project::Common::Callout::Error::Device>
354 {
355     using type = xyz::openbmc_project::Common::Callout::Device;
356 };
357 
358 } // namespace details
359 
360 namespace xyz
361 {
362 namespace openbmc_project
363 {
364 namespace Common
365 {
366 namespace Callout
367 {
368 namespace _GPIO
369 {
370 
371 struct CALLOUT_GPIO_NUM
372 {
373     /*
374      * We can't use -fsanitize=undefined if we declare a
375      * 'static constexpr auto str' member, so don't. Instead, open-code the
376      * mako template lookups.
377      */
378     static constexpr auto str_short = "CALLOUT_GPIO_NUM";
379     using type =
380         std::tuple<std::decay_t<decltype("CALLOUT_GPIO_NUM=%u")>, uint32_t>;
381     explicit constexpr CALLOUT_GPIO_NUM(uint32_t a) :
382         _entry(entry("CALLOUT_GPIO_NUM=%u", a)){};
383     type _entry;
384 };
385 
386 } // namespace _GPIO
387 
388 struct GPIO
389 {
390     static constexpr auto L = level::ERR;
391     using CALLOUT_GPIO_NUM = _GPIO::CALLOUT_GPIO_NUM;
392     using CALLOUT_ERRNO =
393         xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
394     using CALLOUT_DEVICE_PATH =
395         xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
396     using metadata_types =
397         std::tuple<CALLOUT_GPIO_NUM, CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
398 };
399 
400 } // namespace Callout
401 } // namespace Common
402 } // namespace openbmc_project
403 } // namespace xyz
404 
405 namespace details
406 {
407 
408 template <>
409 struct map_exception_type<
410     sdbusplus::xyz::openbmc_project::Common::Callout::Error::GPIO>
411 {
412     using type = xyz::openbmc_project::Common::Callout::GPIO;
413 };
414 
415 } // namespace details
416 
417 namespace xyz
418 {
419 namespace openbmc_project
420 {
421 namespace Common
422 {
423 namespace Callout
424 {
425 namespace _IIC
426 {
427 
428 struct CALLOUT_IIC_BUS
429 {
430     /*
431      * We can't use -fsanitize=undefined if we declare a
432      * 'static constexpr auto str' member, so don't. Instead, open-code the
433      * mako template lookups.
434      */
435     static constexpr auto str_short = "CALLOUT_IIC_BUS";
436     using type =
437         std::tuple<std::decay_t<decltype("CALLOUT_IIC_BUS=%s")>, const char*>;
438     explicit constexpr CALLOUT_IIC_BUS(const char* a) :
439         _entry(entry("CALLOUT_IIC_BUS=%s", a)){};
440     type _entry;
441 };
442 struct CALLOUT_IIC_ADDR
443 {
444     /*
445      * We can't use -fsanitize=undefined if we declare a
446      * 'static constexpr auto str' member, so don't. Instead, open-code the
447      * mako template lookups.
448      */
449     static constexpr auto str_short = "CALLOUT_IIC_ADDR";
450     using type =
451         std::tuple<std::decay_t<decltype("CALLOUT_IIC_ADDR=0x%hx")>, uint16_t>;
452     explicit constexpr CALLOUT_IIC_ADDR(uint16_t a) :
453         _entry(entry("CALLOUT_IIC_ADDR=0x%hx", a)){};
454     type _entry;
455 };
456 
457 } // namespace _IIC
458 
459 struct IIC
460 {
461     static constexpr auto L = level::ERR;
462     using CALLOUT_IIC_BUS = _IIC::CALLOUT_IIC_BUS;
463     using CALLOUT_IIC_ADDR = _IIC::CALLOUT_IIC_ADDR;
464     using CALLOUT_ERRNO =
465         xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO;
466     using CALLOUT_DEVICE_PATH =
467         xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH;
468     using metadata_types = std::tuple<CALLOUT_IIC_BUS, CALLOUT_IIC_ADDR,
469                                       CALLOUT_ERRNO, CALLOUT_DEVICE_PATH>;
470 };
471 
472 } // namespace Callout
473 } // namespace Common
474 } // namespace openbmc_project
475 } // namespace xyz
476 
477 namespace details
478 {
479 
480 template <>
481 struct map_exception_type<
482     sdbusplus::xyz::openbmc_project::Common::Callout::Error::IIC>
483 {
484     using type = xyz::openbmc_project::Common::Callout::IIC;
485 };
486 
487 } // namespace details
488 
489 namespace xyz
490 {
491 namespace openbmc_project
492 {
493 namespace Common
494 {
495 namespace Callout
496 {
497 namespace _Inventory
498 {
499 
500 struct CALLOUT_INVENTORY_PATH
501 {
502     /*
503      * We can't use -fsanitize=undefined if we declare a
504      * 'static constexpr auto str' member, so don't. Instead, open-code the
505      * mako template lookups.
506      */
507     static constexpr auto str_short = "CALLOUT_INVENTORY_PATH";
508     using type = std::tuple<std::decay_t<decltype("CALLOUT_INVENTORY_PATH=%s")>,
509                             const char*>;
510     explicit constexpr CALLOUT_INVENTORY_PATH(const char* a) :
511         _entry(entry("CALLOUT_INVENTORY_PATH=%s", a)){};
512     type _entry;
513 };
514 
515 } // namespace _Inventory
516 
517 struct Inventory
518 {
519     static constexpr auto L = level::ERR;
520     using CALLOUT_INVENTORY_PATH = _Inventory::CALLOUT_INVENTORY_PATH;
521     using metadata_types = std::tuple<CALLOUT_INVENTORY_PATH>;
522 };
523 
524 } // namespace Callout
525 } // namespace Common
526 } // namespace openbmc_project
527 } // namespace xyz
528 
529 namespace details
530 {
531 
532 template <>
533 struct map_exception_type<
534     sdbusplus::xyz::openbmc_project::Common::Callout::Error::Inventory>
535 {
536     using type = xyz::openbmc_project::Common::Callout::Inventory;
537 };
538 
539 } // namespace details
540 
541 namespace xyz
542 {
543 namespace openbmc_project
544 {
545 namespace Common
546 {
547 namespace Callout
548 {
549 namespace _IPMISensor
550 {
551 
552 struct CALLOUT_IPMI_SENSOR_NUM
553 {
554     /*
555      * We can't use -fsanitize=undefined if we declare a
556      * 'static constexpr auto str' member, so don't. Instead, open-code the
557      * mako template lookups.
558      */
559     static constexpr auto str_short = "CALLOUT_IPMI_SENSOR_NUM";
560     using type =
561         std::tuple<std::decay_t<decltype("CALLOUT_IPMI_SENSOR_NUM=%u")>,
562                    uint32_t>;
563     explicit constexpr CALLOUT_IPMI_SENSOR_NUM(uint32_t a) :
564         _entry(entry("CALLOUT_IPMI_SENSOR_NUM=%u", a)){};
565     type _entry;
566 };
567 
568 } // namespace _IPMISensor
569 
570 struct IPMISensor
571 {
572     static constexpr auto L = level::ERR;
573     using CALLOUT_IPMI_SENSOR_NUM = _IPMISensor::CALLOUT_IPMI_SENSOR_NUM;
574     using metadata_types = std::tuple<CALLOUT_IPMI_SENSOR_NUM>;
575 };
576 
577 } // namespace Callout
578 } // namespace Common
579 } // namespace openbmc_project
580 } // namespace xyz
581 
582 namespace details
583 {
584 
585 template <>
586 struct map_exception_type<
587     sdbusplus::xyz::openbmc_project::Common::Callout::Error::IPMISensor>
588 {
589     using type = xyz::openbmc_project::Common::Callout::IPMISensor;
590 };
591 
592 } // namespace details
593 
594 namespace org
595 {
596 namespace open_power
597 {
598 namespace Host
599 {
600 namespace _Event
601 {
602 
603 struct ESEL
604 {
605     /*
606      * We can't use -fsanitize=undefined if we declare a
607      * 'static constexpr auto str' member, so don't. Instead, open-code the
608      * mako template lookups.
609      */
610     static constexpr auto str_short = "ESEL";
611     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
612     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
613     type _entry;
614 };
615 
616 } // namespace _Event
617 
618 struct Event
619 {
620     static constexpr auto L = level::ERR;
621     using ESEL = _Event::ESEL;
622     using CALLOUT_INVENTORY_PATH = xyz::openbmc_project::Common::Callout::
623         Inventory::CALLOUT_INVENTORY_PATH;
624     using metadata_types = std::tuple<ESEL, CALLOUT_INVENTORY_PATH>;
625 };
626 
627 } // namespace Host
628 } // namespace open_power
629 } // namespace org
630 
631 namespace details
632 {
633 
634 template <>
635 struct map_exception_type<sdbusplus::org::open_power::Host::Error::Event>
636 {
637     using type = org::open_power::Host::Event;
638 };
639 
640 } // namespace details
641 
642 namespace org
643 {
644 namespace open_power
645 {
646 namespace Host
647 {
648 namespace _MaintenanceProcedure
649 {
650 
651 struct ESEL
652 {
653     /*
654      * We can't use -fsanitize=undefined if we declare a
655      * 'static constexpr auto str' member, so don't. Instead, open-code the
656      * mako template lookups.
657      */
658     static constexpr auto str_short = "ESEL";
659     using type = std::tuple<std::decay_t<decltype("ESEL=%s")>, const char*>;
660     explicit constexpr ESEL(const char* a) : _entry(entry("ESEL=%s", a)){};
661     type _entry;
662 };
663 
664 } // namespace _MaintenanceProcedure
665 
666 struct MaintenanceProcedure
667 {
668     static constexpr auto L = level::ERR;
669     using ESEL = _MaintenanceProcedure::ESEL;
670     using PROCEDURE = org::open_power::Common::Callout::Procedure::PROCEDURE;
671     using metadata_types = std::tuple<ESEL, PROCEDURE>;
672 };
673 
674 } // namespace Host
675 } // namespace open_power
676 } // namespace org
677 
678 namespace details
679 {
680 
681 template <>
682 struct map_exception_type<
683     sdbusplus::org::open_power::Host::Error::MaintenanceProcedure>
684 {
685     using type = org::open_power::Host::MaintenanceProcedure;
686 };
687 
688 } // namespace details
689 
690 } // namespace logging
691 
692 } // namespace phosphor
693