ListStatus.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef FIX41_LISTSTATUS_H
  2. #define FIX41_LISTSTATUS_H
  3. #include "Message.h"
  4. namespace FIX41
  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,151,84,6,0)) {}
  33. FIELD_SET(*this, FIX::ClOrdID);
  34. FIELD_SET(*this, FIX::CumQty);
  35. FIELD_SET(*this, FIX::LeavesQty);
  36. FIELD_SET(*this, FIX::CxlQty);
  37. FIELD_SET(*this, FIX::AvgPx);
  38. };
  39. };
  40. }
  41. #endif