blob: 52d8d9bfda681eefb5ea40f78946129bc353729b [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";
19 using type = std::tuple<std::decay_t<decltype(str)>,int>;
20 explicit constexpr errnum(int a) : _entry(entry(str, a)) {};
21 type _entry;
22};
23
24struct file_path
25{
26 static constexpr auto str = "FILE_PATH=%s";
27 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
28 explicit constexpr file_path(const char *a) : _entry(entry(str,a)) {};
29 type _entry;
30};
31
32struct file_name
33{
34 static constexpr auto str = "FILE_NAME=%s";
35 using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
36 explicit constexpr file_name(const char *a) : _entry(entry(str,a)) {};
37 type _entry;
38};
39
40} // namespace _file_not_found
41
42struct file_not_found
43{
44 static constexpr auto err_code = "xyz.openbmc_project.logging.FILE_NOT_FOUND_ERROR";
45 static constexpr auto err_msg = "A required file was not found";
46 static constexpr auto L = level::INFO;
47
48 using errnum = _file_not_found::errnum;
49 using file_path = _file_not_found::file_path;
50 using file_name = _file_not_found::file_name;
51
52 using metadata_types = std::tuple<errnum, file_path, file_name>;
53};
54
55
56
57} // namespace logging
58
59} // namespace phosphor