JayBeams  0.1
Another project to have fun coding.
ipo_quoting_period_update_message.hpp
Go to the documentation of this file.
1 #ifndef jb_itch5_ipo_quoting_period_update_message_hpp
2 #define jb_itch5_ipo_quoting_period_update_message_hpp
3 
9 
10 namespace jb {
11 namespace itch5 {
12 
13 /**
14  * Represent the 'IPO Quotation Release Qualifier' field on a 'IPO
15  * Quoting Period Update' message.
16  */
18 
19 /**
20  * Represent a 'IPO Quotation Release Update' message in the ITCH-5.0
21  * protocol.
22  */
24  constexpr static int message_type = u'K';
25 
29  ipo_quotation_release_qualifier_t ipo_quotation_release_qualifier;
31 };
32 
33 /// Specialize decoder for a jb::itch5::ipo_quoting_period_update_message
34 template <bool V>
36  /// Please see the generic documentation for jb::itch5::decoder<>::r()
38  r(std::size_t size, void const* buf, std::size_t off) {
40  x.header = decoder<V, message_header>::r(size, buf, off + 0);
41  x.stock = decoder<V, stock_t>::r(size, buf, off + 11);
43  decoder<V, seconds_field>::r(size, buf, off + 19);
46  x.ipo_price = decoder<V, price4_t>::r(size, buf, off + 24);
47  return x;
48  }
49 };
50 
51 /// Streaming operator for jb::itch5::ipo_quoting_period_update_message.
52 std::ostream&
53 operator<<(std::ostream& os, ipo_quoting_period_update_message const& x);
54 
55 } // namespace itch5
56 } // namespace jb
57 
58 #endif // jb_itch5_ipo_quoting_period_update_message_hpp
Define the header common to all ITCH 5.0 messages.
static T r(std::size_t size, void const *msg, std::size_t offset)
Read a single message or field.
Represent a ITCH-5.0 seconds_field.
Represent a &#39;IPO Quotation Release Update&#39; message in the ITCH-5.0 protocol.
Define the interface to decode ITCH-5.0 messages and message fields.
Definition: decoder.hpp:24
static ipo_quoting_period_update_message r(std::size_t size, void const *buf, std::size_t off)
Please see the generic documentation for jb::itch5::decoder<>::r()
std::ostream & operator<<(std::ostream &os, add_order_message const &x)
Streaming operator for jb::itch5::add_order_message.
char_list_field< u 'A', u 'C'> ipo_quotation_release_qualifier_t
Represent the &#39;IPO Quotation Release Qualifier&#39; field on a &#39;IPO Quoting Period Update&#39; message...
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7