ApplicationMessageRequest.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef FIX50SP1_APPLICATIONMESSAGEREQUEST_H
  2. #define FIX50SP1_APPLICATIONMESSAGEREQUEST_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class ApplicationMessageRequest : public Message
  7. {
  8. public:
  9. ApplicationMessageRequest() : Message(MsgType()) {}
  10. ApplicationMessageRequest(const FIX::Message& m) : Message(m) {}
  11. ApplicationMessageRequest(const Message& m) : Message(m) {}
  12. ApplicationMessageRequest(const ApplicationMessageRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BW"); }
  14. ApplicationMessageRequest(
  15. const FIX::ApplReqID& aApplReqID,
  16. const FIX::ApplReqType& aApplReqType )
  17. : Message(MsgType())
  18. {
  19. set(aApplReqID);
  20. set(aApplReqType);
  21. }
  22. FIELD_SET(*this, FIX::ApplReqID);
  23. FIELD_SET(*this, FIX::ApplReqType);
  24. FIELD_SET(*this, FIX::NoApplIDs);
  25. class NoApplIDs: public FIX::Group
  26. {
  27. public:
  28. NoApplIDs() : FIX::Group(1351,1355,FIX::message_order(1355,1182,1183,0)) {}
  29. FIELD_SET(*this, FIX::RefApplID);
  30. FIELD_SET(*this, FIX::ApplBegSeqNum);
  31. FIELD_SET(*this, FIX::ApplEndSeqNum);
  32. };
  33. FIELD_SET(*this, FIX::Text);
  34. FIELD_SET(*this, FIX::EncodedTextLen);
  35. FIELD_SET(*this, FIX::EncodedText);
  36. };
  37. }
  38. #endif