OrderCancelReject.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef FIX41_ORDERCANCELREJECT_H
  2. #define FIX41_ORDERCANCELREJECT_H
  3. #include "Message.h"
  4. namespace FIX41
  5. {
  6. class OrderCancelReject : public Message
  7. {
  8. public:
  9. OrderCancelReject() : Message(MsgType()) {}
  10. OrderCancelReject(const FIX::Message& m) : Message(m) {}
  11. OrderCancelReject(const Message& m) : Message(m) {}
  12. OrderCancelReject(const OrderCancelReject& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("9"); }
  14. OrderCancelReject(
  15. const FIX::OrderID& aOrderID,
  16. const FIX::ClOrdID& aClOrdID,
  17. const FIX::OrigClOrdID& aOrigClOrdID,
  18. const FIX::OrdStatus& aOrdStatus )
  19. : Message(MsgType())
  20. {
  21. set(aOrderID);
  22. set(aClOrdID);
  23. set(aOrigClOrdID);
  24. set(aOrdStatus);
  25. }
  26. FIELD_SET(*this, FIX::OrderID);
  27. FIELD_SET(*this, FIX::SecondaryOrderID);
  28. FIELD_SET(*this, FIX::ClOrdID);
  29. FIELD_SET(*this, FIX::OrigClOrdID);
  30. FIELD_SET(*this, FIX::OrdStatus);
  31. FIELD_SET(*this, FIX::ClientID);
  32. FIELD_SET(*this, FIX::ExecBroker);
  33. FIELD_SET(*this, FIX::ListID);
  34. FIELD_SET(*this, FIX::CxlRejReason);
  35. FIELD_SET(*this, FIX::Text);
  36. };
  37. }
  38. #endif