3 #include <boost/test/unit_test.hpp> 11 BOOST_CHECK_EQUAL(
true, std::is_pod<delete_order_message>::value);
14 char const buf[] = u8
"\x0E" 17 "\x05\x40\x5B\x77\x8F\x56\x1D\x0B" 20 BOOST_REQUIRE_EQUAL(
sizeof(buf) - 1,
sizeof(msg));
21 std::memcpy(&msg, buf,
sizeof(msg));
22 BOOST_CHECK_EQUAL(
int(msg.
length.value()), 14);
25 BOOST_CHECK_EQUAL(msg.
order_id.value(), 0x0B1D568F775B4005ULL);
27 std::ostringstream os;
30 os.str(), std::string(
"length=14,message_type=41,time_offset=447000," 31 "order_id=800891482924597253"));
boost::endian::little_uint8_buf_t length
boost::endian::little_uint32_buf_t time_offset
Represent the 'Delete Order' message in the PITCH-2.X protocol.
boost::endian::little_uint8_buf_t message_type
boost::endian::little_uint64_buf_t order_id
BOOST_AUTO_TEST_CASE(delete_order_message_basic)