ListStatus.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef FIX40_LISTSTATUS_H
  2. #define FIX40_LISTSTATUS_H
  3. #include "Message.h"
  4. namespace FIX40
  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::NoRpts& aNoRpts,
  17. const FIX::RptSeq& aRptSeq )
  18. : Message(MsgType())
  19. {
  20. set(aListID);
  21. set(aNoRpts);
  22. set(aRptSeq);
  23. }
  24. FIELD_SET(*this, FIX::ListID);
  25. FIELD_SET(*this, FIX::WaveNo);
  26. FIELD_SET(*this, FIX::NoRpts);
  27. FIELD_SET(*this, FIX::RptSeq);
  28. FIELD_SET(*this, FIX::NoOrders);
  29. class NoOrders: public FIX::Group
  30. {
  31. public:
  32. NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,84,6,0)) {}
  33. FIELD_SET(*this, FIX::ClOrdID);
  34. FIELD_SET(*this, FIX::CumQty);
  35. FIELD_SET(*this, FIX::CxlQty);
  36. FIELD_SET(*this, FIX::AvgPx);
  37. };
  38. };
  39. }
  40. #endif