JayBeams  0.1
Another project to have fun coding.
delete_order_message.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_delete_message_hpp
2 #define jb_pitch2_delete_message_hpp
3 
4 #include <boost/endian/buffers.hpp>
5 
6 #include <iosfwd>
7 
8 namespace jb {
9 namespace pitch2 {
10 
11 /**
12  * Represent the 'Delete Order' message in the PITCH-2.X protocol.
13  *
14  * A full description of the fields can be found in the BATS PITCH-2.X
15  * specification:
16  * https://www.batstrading.com/resources/membership/BATS_MC_PITCH_Specification.pdf
17  */
19  /// Define the messsage type
20  constexpr static int type = 0x29;
21 
22  boost::endian::little_uint8_buf_t length;
23  boost::endian::little_uint8_buf_t message_type;
24  boost::endian::little_uint32_buf_t time_offset;
25  boost::endian::little_uint64_buf_t order_id;
26 };
27 
28 /// Streaming operator for jb::pitch2::delete_message.
29 std::ostream& operator<<(std::ostream& os, delete_order_message const& x);
30 
31 } // namespace pitch2
32 } // namespace jb
33 
34 #endif // jb_pitch2_delete_message_hpp
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::pitch2::add_order_message.
boost::endian::little_uint8_buf_t length
boost::endian::little_uint32_buf_t time_offset
Represent the &#39;Delete Order&#39; message in the PITCH-2.X protocol.
static constexpr int type
Define the messsage type.
boost::endian::little_uint8_buf_t message_type
boost::endian::little_uint64_buf_t order_id
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7