1 // 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 12 namespace sdbusplus 13 { 14 namespace xyz 15 { 16 namespace openbmc_project 17 { 18 namespace Power 19 { 20 namespace Fault 21 { 22 namespace Error 23 { 24 struct PowerOnFailure; 25 } // namespace Error 26 } // namespace Fault 27 } // namespace Power 28 } // namespace openbmc_project 29 } // namespace xyz 30 } // namespace sdbusplus 31 32 namespace sdbusplus 33 { 34 namespace xyz 35 { 36 namespace openbmc_project 37 { 38 namespace Power 39 { 40 namespace Fault 41 { 42 namespace Error 43 { 44 struct PowerSequencerPGOODFault; 45 } // namespace Error 46 } // namespace Fault 47 } // namespace Power 48 } // namespace openbmc_project 49 } // namespace xyz 50 } // namespace sdbusplus 51 52 namespace sdbusplus 53 { 54 namespace xyz 55 { 56 namespace openbmc_project 57 { 58 namespace Power 59 { 60 namespace Fault 61 { 62 namespace Error 63 { 64 struct PowerSequencerVoltageFault; 65 } // namespace Error 66 } // namespace Fault 67 } // namespace Power 68 } // namespace openbmc_project 69 } // namespace xyz 70 } // namespace sdbusplus 71 72 namespace sdbusplus 73 { 74 namespace xyz 75 { 76 namespace openbmc_project 77 { 78 namespace Power 79 { 80 namespace Fault 81 { 82 namespace Error 83 { 84 struct PowerSequencerFault; 85 } // namespace Error 86 } // namespace Fault 87 } // namespace Power 88 } // namespace openbmc_project 89 } // namespace xyz 90 } // namespace sdbusplus 91 92 namespace sdbusplus 93 { 94 namespace xyz 95 { 96 namespace openbmc_project 97 { 98 namespace Power 99 { 100 namespace Fault 101 { 102 namespace Error 103 { 104 struct Shutdown; 105 } // namespace Error 106 } // namespace Fault 107 } // namespace Power 108 } // namespace openbmc_project 109 } // namespace xyz 110 } // namespace sdbusplus 111 112 113 namespace phosphor 114 { 115 116 namespace logging 117 { 118 119 namespace xyz 120 { 121 namespace openbmc_project 122 { 123 namespace Power 124 { 125 namespace Fault 126 { 127 namespace _Shutdown 128 { 129 130 131 } // namespace _Shutdown 132 133 struct Shutdown 134 { 135 static constexpr auto L = level::ERR; 136 using metadata_types = std::tuple<>; 137 138 }; 139 140 } // namespace Fault 141 } // namespace Power 142 } // namespace openbmc_project 143 } // namespace xyz 144 145 146 namespace details 147 { 148 149 template <> 150 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::Shutdown> 151 { 152 using type = xyz::openbmc_project::Power::Fault::Shutdown; 153 }; 154 155 } 156 157 namespace xyz 158 { 159 namespace openbmc_project 160 { 161 namespace Power 162 { 163 namespace Fault 164 { 165 namespace _PowerOnFailure 166 { 167 168 169 } // namespace _PowerOnFailure 170 171 struct PowerOnFailure 172 { 173 static constexpr auto L = level::ERR; 174 using metadata_types = std::tuple<>; 175 176 }; 177 178 } // namespace Fault 179 } // namespace Power 180 } // namespace openbmc_project 181 } // namespace xyz 182 183 184 namespace details 185 { 186 187 template <> 188 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure> 189 { 190 using type = xyz::openbmc_project::Power::Fault::PowerOnFailure; 191 }; 192 193 } 194 195 namespace xyz 196 { 197 namespace openbmc_project 198 { 199 namespace Power 200 { 201 namespace Fault 202 { 203 namespace _PowerSequencerVoltageFault 204 { 205 206 struct RAIL 207 { 208 static constexpr auto str = "RAIL=%d"; 209 static constexpr auto str_short = "RAIL"; 210 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; 211 explicit constexpr RAIL(uint16_t a) : _entry(entry(str, a)) {}; 212 type _entry; 213 }; 214 struct RAIL_NAME 215 { 216 static constexpr auto str = "RAIL_NAME=%s"; 217 static constexpr auto str_short = "RAIL_NAME"; 218 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 219 explicit constexpr RAIL_NAME(const char* a) : _entry(entry(str, a)) {}; 220 type _entry; 221 }; 222 struct RAW_STATUS 223 { 224 static constexpr auto str = "RAW_STATUS=%s"; 225 static constexpr auto str_short = "RAW_STATUS"; 226 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 227 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 228 type _entry; 229 }; 230 231 } // namespace _PowerSequencerVoltageFault 232 233 struct PowerSequencerVoltageFault 234 { 235 static constexpr auto L = level::ERR; 236 using RAIL = _PowerSequencerVoltageFault::RAIL; 237 using RAIL_NAME = _PowerSequencerVoltageFault::RAIL_NAME; 238 using RAW_STATUS = _PowerSequencerVoltageFault::RAW_STATUS; 239 using metadata_types = std::tuple<RAIL, RAIL_NAME, RAW_STATUS>; 240 241 }; 242 243 } // namespace Fault 244 } // namespace Power 245 } // namespace openbmc_project 246 } // namespace xyz 247 248 249 namespace details 250 { 251 252 template <> 253 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerVoltageFault> 254 { 255 using type = xyz::openbmc_project::Power::Fault::PowerSequencerVoltageFault; 256 }; 257 258 } 259 260 namespace xyz 261 { 262 namespace openbmc_project 263 { 264 namespace Power 265 { 266 namespace Fault 267 { 268 namespace _PowerSequencerPGOODFault 269 { 270 271 struct INPUT_NUM 272 { 273 static constexpr auto str = "INPUT_NUM=%d"; 274 static constexpr auto str_short = "INPUT_NUM"; 275 using type = std::tuple<std::decay_t<decltype(str)>,uint16_t>; 276 explicit constexpr INPUT_NUM(uint16_t a) : _entry(entry(str, a)) {}; 277 type _entry; 278 }; 279 struct INPUT_NAME 280 { 281 static constexpr auto str = "INPUT_NAME=%s"; 282 static constexpr auto str_short = "INPUT_NAME"; 283 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 284 explicit constexpr INPUT_NAME(const char* a) : _entry(entry(str, a)) {}; 285 type _entry; 286 }; 287 struct RAW_STATUS 288 { 289 static constexpr auto str = "RAW_STATUS=%s"; 290 static constexpr auto str_short = "RAW_STATUS"; 291 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 292 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 293 type _entry; 294 }; 295 296 } // namespace _PowerSequencerPGOODFault 297 298 struct PowerSequencerPGOODFault 299 { 300 static constexpr auto L = level::ERR; 301 using INPUT_NUM = _PowerSequencerPGOODFault::INPUT_NUM; 302 using INPUT_NAME = _PowerSequencerPGOODFault::INPUT_NAME; 303 using RAW_STATUS = _PowerSequencerPGOODFault::RAW_STATUS; 304 using metadata_types = std::tuple<INPUT_NUM, INPUT_NAME, RAW_STATUS>; 305 306 }; 307 308 } // namespace Fault 309 } // namespace Power 310 } // namespace openbmc_project 311 } // namespace xyz 312 313 314 namespace details 315 { 316 317 template <> 318 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerPGOODFault> 319 { 320 using type = xyz::openbmc_project::Power::Fault::PowerSequencerPGOODFault; 321 }; 322 323 } 324 325 namespace xyz 326 { 327 namespace openbmc_project 328 { 329 namespace Power 330 { 331 namespace Fault 332 { 333 namespace _PowerSequencerFault 334 { 335 336 struct RAW_STATUS 337 { 338 static constexpr auto str = "RAW_STATUS=%s"; 339 static constexpr auto str_short = "RAW_STATUS"; 340 using type = std::tuple<std::decay_t<decltype(str)>,const char*>; 341 explicit constexpr RAW_STATUS(const char* a) : _entry(entry(str, a)) {}; 342 type _entry; 343 }; 344 345 } // namespace _PowerSequencerFault 346 347 struct PowerSequencerFault 348 { 349 static constexpr auto L = level::ERR; 350 using RAW_STATUS = _PowerSequencerFault::RAW_STATUS; 351 using metadata_types = std::tuple<RAW_STATUS>; 352 353 }; 354 355 } // namespace Fault 356 } // namespace Power 357 } // namespace openbmc_project 358 } // namespace xyz 359 360 361 namespace details 362 { 363 364 template <> 365 struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerSequencerFault> 366 { 367 using type = xyz::openbmc_project::Power::Fault::PowerSequencerFault; 368 }; 369 370 } 371 372 373 } // namespace logging 374 375 } // namespace phosphor 376