Reject.h 783 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef FIX44_REJECT_H
  2. #define FIX44_REJECT_H
  3. #include "Message.h"
  4. namespace FIX44
  5. {
  6. class Reject : public Message
  7. {
  8. public:
  9. Reject() : Message(MsgType()) {}
  10. Reject(const FIX::Message& m) : Message(m) {}
  11. Reject(const Message& m) : Message(m) {}
  12. Reject(const Reject& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("3"); }
  14. Reject(
  15. const FIX::RefSeqNum& aRefSeqNum )
  16. : Message(MsgType())
  17. {
  18. set(aRefSeqNum);
  19. }
  20. FIELD_SET(*this, FIX::RefSeqNum);
  21. FIELD_SET(*this, FIX::RefTagID);
  22. FIELD_SET(*this, FIX::RefMsgType);
  23. FIELD_SET(*this, FIX::SessionRejectReason);
  24. FIELD_SET(*this, FIX::Text);
  25. FIELD_SET(*this, FIX::EncodedTextLen);
  26. FIELD_SET(*this, FIX::EncodedText);
  27. };
  28. }
  29. #endif