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