OrderCancelReject.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef FIX42_ORDERCANCELREJECT_H
  2. #define FIX42_ORDERCANCELREJECT_H
  3. #include "Message.h"
  4. namespace FIX42
  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. const FIX::CxlRejResponseTo& aCxlRejResponseTo )
  20. : Message(MsgType())
  21. {
  22. set(aOrderID);
  23. set(aClOrdID);
  24. set(aOrigClOrdID);
  25. set(aOrdStatus);
  26. set(aCxlRejResponseTo);
  27. }
  28. FIELD_SET(*this, FIX::OrderID);
  29. FIELD_SET(*this, FIX::SecondaryOrderID);
  30. FIELD_SET(*this, FIX::ClOrdID);
  31. FIELD_SET(*this, FIX::OrigClOrdID);
  32. FIELD_SET(*this, FIX::OrdStatus);
  33. FIELD_SET(*this, FIX::ClientID);
  34. FIELD_SET(*this, FIX::ExecBroker);
  35. FIELD_SET(*this, FIX::ListID);
  36. FIELD_SET(*this, FIX::Account);
  37. FIELD_SET(*this, FIX::TransactTime);
  38. FIELD_SET(*this, FIX::CxlRejResponseTo);
  39. FIELD_SET(*this, FIX::CxlRejReason);
  40. FIELD_SET(*this, FIX::Text);
  41. FIELD_SET(*this, FIX::EncodedTextLen);
  42. FIELD_SET(*this, FIX::EncodedText);
  43. };
  44. }
  45. #endif