Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 1 | // this file was autogenerated. do not edit. |
| 2 | #pragma once |
| 3 | |
| 4 | #include <tuple> |
| 5 | #include <type_traits> |
| 6 | #include "log.hpp" |
| 7 | |
| 8 | namespace phosphor |
| 9 | { |
| 10 | |
| 11 | namespace logging |
| 12 | { |
| 13 | |
| 14 | namespace _file_not_found |
| 15 | { |
| 16 | struct errnum |
| 17 | { |
| 18 | static constexpr auto str = "ERRNO=%d"; |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame^] | 19 | static constexpr auto str_short = "ERRNO"; |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 20 | 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 | |
| 25 | struct file_path |
| 26 | { |
| 27 | static constexpr auto str = "FILE_PATH=%s"; |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame^] | 28 | static constexpr auto str_short = "FILE_PATH"; |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 29 | 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 | |
| 34 | struct file_name |
| 35 | { |
| 36 | static constexpr auto str = "FILE_NAME=%s"; |
Andrew Geissler | 328889d | 2016-10-10 12:43:48 -0500 | [diff] [blame^] | 37 | static constexpr auto str_short = "FILE_NAME"; |
Adriana Kobylak | f855c3e | 2016-09-29 20:48:08 -0500 | [diff] [blame] | 38 | 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 | |
| 45 | struct 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 |