blob: 6eb9e21a4bd18a908d972b35bd89869f33b50080 [file] [log] [blame]
Tom Joseph56c534b2017-10-17 12:38:42 +05301// 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 org
15{
16namespace open_power
17{
18namespace OCC
19{
20namespace Metrics
21{
22namespace Error
23{
24 struct Event;
25} // namespace Error
26} // namespace Metrics
27} // namespace OCC
28} // namespace open_power
29} // namespace org
30} // namespace sdbusplus
31
32
33namespace phosphor
34{
35
36namespace logging
37{
38
39namespace org
40{
41namespace open_power
42{
43namespace OCC
44{
45namespace Metrics
46{
47namespace _Event
48{
49
50struct ESEL
51{
52 static constexpr auto str = "ESEL=%s";
53 static constexpr auto str_short = "ESEL";
54 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
55 explicit constexpr ESEL(const char* a) : _entry(entry(str, a)) {};
56 type _entry;
57};
58
59} // namespace _Event
60
61struct Event
62{
63 static constexpr auto L = level::INFO;
64 using ESEL = _Event::ESEL;
65 using metadata_types = std::tuple<ESEL>;
66
67};
68
69} // namespace Metrics
70} // namespace OCC
71} // namespace open_power
72} // namespace org
73
74
75namespace details
76{
77
78template <>
79struct map_exception_type<sdbusplus::org::open_power::OCC::Metrics::Error::Event>
80{
81 using type = org::open_power::OCC::Metrics::Event;
82};
83
84}
85
86} // namespace logging
87
88} // namespace phosphor