blob: 07d0757d2f42b82e6250c427af9c5346c0841ceb [file] [log] [blame]
Andrew Geisslerc830e0f2016-10-18 12:51:29 -05001// This file was autogenerated. Do not edit!
2// See elog-gen.py for more details
Adriana Kobylakf855c3e2016-09-29 20:48:08 -05003#pragma once
4
5#include <tuple>
6#include <type_traits>
7#include "log.hpp"
8
9namespace phosphor
10{
11
12namespace logging
13{
14
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050015namespace _GETSCOM
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050016{
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050017struct DEV_ADDR
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050018{
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050019 static constexpr auto str = "DEV_ADDR=0x%.8X";
20 static constexpr auto str_short = "DEV_ADDR";
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050021 using type = std::tuple<std::decay_t<decltype(str)>,int>;
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050022 explicit constexpr DEV_ADDR(int a) : _entry(entry(str, a)) {};
23 type _entry;
24};
25struct DEV_ID
26{
27 static constexpr auto str = "DEV_ID=%u";
28 static constexpr auto str_short = "DEV_ID";
29 using type = std::tuple<std::decay_t<decltype(str)>,int>;
30 explicit constexpr DEV_ID(int a) : _entry(entry(str, a)) {};
31 type _entry;
32};
33struct DEV_NAME
34{
35 static constexpr auto str = "DEV_NAME=%s";
36 static constexpr auto str_short = "DEV_NAME";
37 using type = std::tuple<std::decay_t<decltype(str)>,const char *>;
38 explicit constexpr DEV_NAME(const char * a) : _entry(entry(str, a)) {};
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050039 type _entry;
40};
41
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050042} // namespace _GETSCOM
43
44struct GETSCOM
45{
46 static constexpr auto err_code = "xyz.openbmc_project.logging.GETSCOM";
47 static constexpr auto err_msg = "Getscom call failed";
48 static constexpr auto L = level::ERR;
49 using DEV_ADDR = _GETSCOM::DEV_ADDR;
50 using DEV_ID = _GETSCOM::DEV_ID;
51 using DEV_NAME = _GETSCOM::DEV_NAME;
52 using metadata_types = std::tuple<DEV_ADDR, DEV_ID, DEV_NAME>;
53};
54
55namespace _FILE_NOT_FOUND
56{
57struct ERRNUM
58{
59 static constexpr auto str = "ERRNUM=0x%.4X";
60 static constexpr auto str_short = "ERRNUM";
61 using type = std::tuple<std::decay_t<decltype(str)>,int>;
62 explicit constexpr ERRNUM(int a) : _entry(entry(str, a)) {};
63 type _entry;
64};
65struct FILE_PATH
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050066{
67 static constexpr auto str = "FILE_PATH=%s";
Andrew Geissler328889d2016-10-10 12:43:48 -050068 static constexpr auto str_short = "FILE_PATH";
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050069 using type = std::tuple<std::decay_t<decltype(str)>,const char *>;
70 explicit constexpr FILE_PATH(const char * a) : _entry(entry(str, a)) {};
71 type _entry;
72};
73struct FILE_NAME
74{
75 static constexpr auto str = "FILE_NAME=%s";
76 static constexpr auto str_short = "FILE_NAME";
77 using type = std::tuple<std::decay_t<decltype(str)>,const char *>;
78 explicit constexpr FILE_NAME(const char * a) : _entry(entry(str, a)) {};
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050079 type _entry;
80};
81
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050082} // namespace _FILE_NOT_FOUND
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050083
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050084struct FILE_NOT_FOUND
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050085{
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050086 static constexpr auto err_code = "xyz.openbmc_project.logging.FILE_NOT_FOUND";
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050087 static constexpr auto err_msg = "A required file was not found";
88 static constexpr auto L = level::INFO;
Andrew Geisslerc830e0f2016-10-18 12:51:29 -050089 using ERRNUM = _FILE_NOT_FOUND::ERRNUM;
90 using FILE_PATH = _FILE_NOT_FOUND::FILE_PATH;
91 using FILE_NAME = _FILE_NOT_FOUND::FILE_NAME;
92 using metadata_types = std::tuple<ERRNUM, FILE_PATH, FILE_NAME>;
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050093};
94
95
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050096} // namespace logging
97
98} // namespace phosphor