19 #ifndef EQFABRIC_ERROR_H 20 #define EQFABRIC_ERROR_H 23 #include <eq/fabric/types.h> 24 #include <lunchbox/bitOperation.h> 33 typedef void (
Error::*bool_t)()
const;
34 void bool_true()
const {}
37 EQFABRIC_API
Error(
const uint32_t code,
38 const uint128_t& originator = uint128_t());
44 EQFABRIC_API
operator bool_t()
const;
50 EQFABRIC_API uint32_t
getCode()
const;
56 EQFABRIC_API
bool operator==(
const Error& rhs)
const;
59 EQFABRIC_API
bool operator!=(
const Error& rhs)
const;
62 EQFABRIC_API
bool operator==(
const uint32_t code)
const;
65 EQFABRIC_API
bool operator!=(
const uint32_t code)
const;
68 EQFABRIC_API
void serialize(co::DataOStream& os)
const;
69 EQFABRIC_API
void deserialize(co::DataIStream& is);
73 uint128_t _originator;
81 #endif // EQFABRIC_ERROR_H Defines export visibility macros for library EqualizerFabric.
EQFABRIC_API const uint128_t & getOriginator() const
EQFABRIC_API uint32_t getCode() const
ErrorCode
Defines errors produced by Equalizer classes.
A wrapper for error codes to allow intuitive bool-like usage.
The Equalizer client library.
std::ostream & operator<<(std::ostream &os, const AxisEvent &event)
Print the axis event to the given output stream.
EQFABRIC_API bool operator==(const Error &rhs) const
EQFABRIC_API bool operator!=(const Error &rhs) const
EQFABRIC_API Error & operator=(const ErrorCode code)
Assign the given error code.
EQFABRIC_API bool operator!() const