The definition of error codes in HLT. This is a class (note; before was simple enum) to enable safer operations. Each ErrorCode is composed out of 3 parts:
#include <Enums.h>
Public Member Functions | |
ErrorCode () | |
for algo developers | |
ErrorCode (Action::Code a) | |
for algo developers | |
ErrorCode (Action::Code a, Reason::Code r) | |
for algo developers | |
ErrorCode (uint32_t c) | |
ErrorCode (const ErrorCode c, Reason::Code r) | |
ErrorCode (Action::Code a, SteeringInternalReason::Code s) | |
ErrorCode (const ErrorCode c, SteeringInternalReason::Code s) | |
ErrorCode (Action::Code a, Reason::Code r, SteeringInternalReason::Code s) | |
bool | operator== (const ErrorCode &ec) const |
bool | operator!= (const ErrorCode &ec) const |
bool | operator< (const ErrorCode &ec) const |
bool | operator> (const ErrorCode &ec) const |
operator uint32_t () const | |
Action::Code | action () const |
Reason::Code | reason () const |
SteeringInternalReason::Code | steeringInternalReason () const |
std::string | str () |
Public Attributes | |
uint32_t | code |
storage of error code where 4 least significant bits(0-3) are storing Reason, 2 next (4-5) are for Action and bits higher than 8 for SteeringInternalReason |
The definition of error codes in HLT. This is a class (note; before was simple enum) to enable safer operations. Each ErrorCode is composed out of 3 parts: