blob: 3aba8fb00d8ad903a9bf323b4948efb4afb217a0 [file] [log] [blame]
Adriana Kobylakf855c3e2016-09-29 20:48:08 -05001// this file was autogenerated. do not edit.
2#pragma once
3
4#include <tuple>
5#include <type_traits>
6#include "log.hpp"
7
8namespace phosphor
9{
10
11namespace logging
12{
13
14namespace _file_not_found
15{
16struct errnum
17{
18 static constexpr auto str = "ERRNO=%d";
Andrew Geissler328889d2016-10-10 12:43:48 -050019 static constexpr auto str_short = "ERRNO";
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050020 using type = std::tuple<std::decay_t<decltype(str)>,int>;
21 explicit constexpr errnum(int a) : _entry(entry(str, a)) {};
22 type _entry;
23};
24
25struct file_path
26{
27 static constexpr auto str = "FILE_PATH=%s";
Andrew Geissler328889d2016-10-10 12:43:48 -050028 static constexpr auto str_short = "FILE_PATH";
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050029 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
30 explicit constexpr file_path(const char *a) : _entry(entry(str,a)) {};
31 type _entry;
32};
33
34struct file_name
35{
36 static constexpr auto str = "FILE_NAME=%s";
Andrew Geissler328889d2016-10-10 12:43:48 -050037 static constexpr auto str_short = "FILE_NAME";
Adriana Kobylakf855c3e2016-09-29 20:48:08 -050038 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
39 explicit constexpr file_name(const char *a) : _entry(entry(str,a)) {};
40 type _entry;
41};
42
43} // namespace _file_not_found
44
45struct file_not_found
46{
47 static constexpr auto err_code = "xyz.openbmc_project.logging.FILE_NOT_FOUND_ERROR";
48 static constexpr auto err_msg = "A required file was not found";
49 static constexpr auto L = level::INFO;
50
51 using errnum = _file_not_found::errnum;
52 using file_path = _file_not_found::file_path;
53 using file_name = _file_not_found::file_name;
54
55 using metadata_types = std::tuple<errnum, file_path, file_name>;
56};
57
58
59
60} // namespace logging
61
62} // namespace phosphor