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