BusinessMessageReject.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FIX50SP1_BUSINESSMESSAGEREJECT_H
  2. #define FIX50SP1_BUSINESSMESSAGEREJECT_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class BusinessMessageReject : public Message
  7. {
  8. public:
  9. BusinessMessageReject() : Message(MsgType()) {}
  10. BusinessMessageReject(const FIX::Message& m) : Message(m) {}
  11. BusinessMessageReject(const Message& m) : Message(m) {}
  12. BusinessMessageReject(const BusinessMessageReject& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("j"); }
  14. BusinessMessageReject(
  15. const FIX::RefMsgType& aRefMsgType,
  16. const FIX::BusinessRejectReason& aBusinessRejectReason )
  17. : Message(MsgType())
  18. {
  19. set(aRefMsgType);
  20. set(aBusinessRejectReason);
  21. }
  22. FIELD_SET(*this, FIX::RefSeqNum);
  23. FIELD_SET(*this, FIX::RefMsgType);
  24. FIELD_SET(*this, FIX::RefApplVerID);
  25. FIELD_SET(*this, FIX::RefApplExtID);
  26. FIELD_SET(*this, FIX::RefCstmApplVerID);
  27. FIELD_SET(*this, FIX::BusinessRejectRefID);
  28. FIELD_SET(*this, FIX::BusinessRejectReason);
  29. FIELD_SET(*this, FIX::Text);
  30. FIELD_SET(*this, FIX::EncodedTextLen);
  31. FIELD_SET(*this, FIX::EncodedText);
  32. };
  33. }
  34. #endif