JayBeams  0.1
Another project to have fun coding.
base_add_order_message_streaming.hpp
Go to the documentation of this file.
1 #ifndef jb_pitch2_base_add_order_message_streaming_hpp
2 #define jb_pitch2_base_add_order_message_streaming_hpp
3 
5 
6 #include <ostream>
7 
8 namespace jb {
9 namespace pitch2 {
10 
11 /// Streaming operator for jb::pitch2::add_order_message.
12 template <typename qT, typename sT, typename pT>
13 std::ostream&
14 operator<<(std::ostream& os, base_add_order_message<qT, sT, pT> const& x) {
15  return os << "length=" << static_cast<int>(x.length.value())
16  << ",message_type=" << static_cast<int>(x.message_type.value())
17  << ",time_offset=" << x.time_offset.value()
18  << ",order_id=" << x.order_id.value()
19  << ",side_indicator=" << static_cast<char>(x.side_indicator.value())
20  << ",quantity=" << x.quantity.value() << ",symbol=" << x.symbol
21  << ",price=" << x.price.value()
22  << ",add_flags=" << static_cast<int>(x.add_flags.value());
23 }
24 
25 } // namespace pitch2
26 } // namespace jb
27 
28 #endif // jb_pitch2_base_add_order_message_streaming_hpp
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7