ListStatus.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef FIX50SP1_LISTSTATUS_H
  2. #define FIX50SP1_LISTSTATUS_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class ListStatus : public Message
  7. {
  8. public:
  9. ListStatus() : Message(MsgType()) {}
  10. ListStatus(const FIX::Message& m) : Message(m) {}
  11. ListStatus(const Message& m) : Message(m) {}
  12. ListStatus(const ListStatus& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("N"); }
  14. ListStatus(
  15. const FIX::ListID& aListID,
  16. const FIX::ListStatusType& aListStatusType,
  17. const FIX::NoRpts& aNoRpts,
  18. const FIX::ListOrderStatus& aListOrderStatus,
  19. const FIX::RptSeq& aRptSeq,
  20. const FIX::TotNoOrders& aTotNoOrders )
  21. : Message(MsgType())
  22. {
  23. set(aListID);
  24. set(aListStatusType);
  25. set(aNoRpts);
  26. set(aListOrderStatus);
  27. set(aRptSeq);
  28. set(aTotNoOrders);
  29. }
  30. FIELD_SET(*this, FIX::ListID);
  31. FIELD_SET(*this, FIX::ListStatusType);
  32. FIELD_SET(*this, FIX::NoRpts);
  33. FIELD_SET(*this, FIX::ListOrderStatus);
  34. FIELD_SET(*this, FIX::ContingencyType);
  35. FIELD_SET(*this, FIX::ListRejectReason);
  36. FIELD_SET(*this, FIX::RptSeq);
  37. FIELD_SET(*this, FIX::ListStatusText);
  38. FIELD_SET(*this, FIX::EncodedListStatusTextLen);
  39. FIELD_SET(*this, FIX::EncodedListStatusText);
  40. FIELD_SET(*this, FIX::TransactTime);
  41. FIELD_SET(*this, FIX::TotNoOrders);
  42. FIELD_SET(*this, FIX::LastFragment);
  43. FIELD_SET(*this, FIX::NoOrders);
  44. class NoOrders: public FIX::Group
  45. {
  46. public:
  47. NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,526,14,39,636,151,84,6,103,58,354,355,0)) {}
  48. FIELD_SET(*this, FIX::ClOrdID);
  49. FIELD_SET(*this, FIX::OrderID);
  50. FIELD_SET(*this, FIX::SecondaryClOrdID);
  51. FIELD_SET(*this, FIX::CumQty);
  52. FIELD_SET(*this, FIX::OrdStatus);
  53. FIELD_SET(*this, FIX::WorkingIndicator);
  54. FIELD_SET(*this, FIX::LeavesQty);
  55. FIELD_SET(*this, FIX::CxlQty);
  56. FIELD_SET(*this, FIX::AvgPx);
  57. FIELD_SET(*this, FIX::OrdRejReason);
  58. FIELD_SET(*this, FIX::Text);
  59. FIELD_SET(*this, FIX::EncodedTextLen);
  60. FIELD_SET(*this, FIX::EncodedText);
  61. };
  62. };
  63. }
  64. #endif