8 #define DRIPLINE_API_EXPORTS 19 return static_cast< uint32_t
>( an_op );
23 return static_cast< op_t >( an_op_uint );
27 return a_os <<
to_uint( an_op );
37 default:
throw dripline_error() <<
"op_t value <" << an_op <<
"> not recognized";
46 throw dripline_error() <<
"unable to map <" << an_op_str <<
"> to an op_t value";
53 return static_cast< uint32_t
>( a_msg );
57 return static_cast< msg_t >( a_msg_uint );
61 return a_os <<
to_uint( a_msg );
71 default:
throw dripline_error() <<
"msg_t value <" << a_msg <<
"> not recognized";
80 throw dripline_error() <<
"unable to map <" << a_msg_str <<
"> to a msg_t value";
op_t to_op_t(uint32_t an_op_uint)
Dripline-specific errors.
std::ostream & operator<<(std::ostream &a_os, op_t an_op)
Pass the integer-equivalent of a message-operation enum to an ostream.
msg_t to_msg_t(uint32_t a_msg_uint)
std::string to_string(op_t an_op)
Gives the human-readable version of a message operation.
uint32_t to_uint(op_t an_op)
Convert a message-operation enum to an integer.