OrderCancelReject.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef FIX50SP2_ORDERCANCELREJECT_H
  2. #define FIX50SP2_ORDERCANCELREJECT_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  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::OrdStatus& aOrdStatus,
  18. const FIX::CxlRejResponseTo& aCxlRejResponseTo )
  19. : Message(MsgType())
  20. {
  21. set(aOrderID);
  22. set(aClOrdID);
  23. set(aOrdStatus);
  24. set(aCxlRejResponseTo);
  25. }
  26. FIELD_SET(*this, FIX::OrderID);
  27. FIELD_SET(*this, FIX::SecondaryOrderID);
  28. FIELD_SET(*this, FIX::SecondaryClOrdID);
  29. FIELD_SET(*this, FIX::ClOrdID);
  30. FIELD_SET(*this, FIX::ClOrdLinkID);
  31. FIELD_SET(*this, FIX::OrigClOrdID);
  32. FIELD_SET(*this, FIX::OrdStatus);
  33. FIELD_SET(*this, FIX::WorkingIndicator);
  34. FIELD_SET(*this, FIX::OrigOrdModTime);
  35. FIELD_SET(*this, FIX::ListID);
  36. FIELD_SET(*this, FIX::Account);
  37. FIELD_SET(*this, FIX::AcctIDSource);
  38. FIELD_SET(*this, FIX::AccountType);
  39. FIELD_SET(*this, FIX::TradeOriginationDate);
  40. FIELD_SET(*this, FIX::TradeDate);
  41. FIELD_SET(*this, FIX::TransactTime);
  42. FIELD_SET(*this, FIX::CxlRejResponseTo);
  43. FIELD_SET(*this, FIX::CxlRejReason);
  44. FIELD_SET(*this, FIX::Text);
  45. FIELD_SET(*this, FIX::EncodedTextLen);
  46. FIELD_SET(*this, FIX::EncodedText);
  47. };
  48. }
  49. #endif