1 #ifndef XT_API_PRINT_HPP
2 #define XT_API_PRINT_HPP
6 #include <xt/cpp/Core.hpp>
7 #include <xt/cpp/Error.hpp>
18 {
return os << Detail::HandleAssert(XtPrintCause(static_cast<XtCause>(cause))); }
21 {
return os << Detail::HandleAssert(XtPrintSetup(static_cast<XtSetup>(setup))); }
24 {
return os << Detail::HandleAssert(XtPrintSystem(static_cast<XtSystem>(system))); }
27 {
return os << Detail::HandleAssert(XtPrintSample(static_cast<XtSample>(sample))); }
30 {
return os << Detail::HandleAssert(XtPrintEnumFlags(static_cast<XtEnumFlags>(flags))); }
33 {
return os << Detail::HandleAssert(XtPrintDeviceCaps(static_cast<XtDeviceCaps>(capabilities))); }
36 {
return os << Detail::HandleAssert(XtPrintServiceCaps(static_cast<XtServiceCaps>(capabilities))); }
44 i.system =
static_cast<XtSystem
>(info.
system);
45 i.service.cause =
static_cast<XtCause
>(info.
service.
cause);
46 return os << Detail::HandleAssert(XtPrintErrorInfo(&i));
50 #endif // XT_API_PRINT_HPP
ServiceError service
Definition: Structs.hpp:47
std::string text
Definition: Structs.hpp:40
EnumFlags
Definition: Enums.hpp:13
Cause cause
Definition: Structs.hpp:39
Cause
Definition: Enums.hpp:10
System system
Definition: Structs.hpp:46
std::ostream & operator<<(std::ostream &os, Cause cause)
Definition: XtPrint.hpp:17
DeviceCaps
Definition: Enums.hpp:16
Definition: Structs.hpp:43
ServiceCaps
Definition: Enums.hpp:14
Definition: Callbacks.hpp:10
Sample
Definition: Enums.hpp:9
Setup
Definition: Enums.hpp:8
System
Definition: Enums.hpp:11
uint32_t fault
Definition: Structs.hpp:45