ApplicationMessageReport.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef FIX50SP2_APPLICATIONMESSAGEREPORT_H
  2. #define FIX50SP2_APPLICATIONMESSAGEREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  5. {
  6. class ApplicationMessageReport : public Message
  7. {
  8. public:
  9. ApplicationMessageReport() : Message(MsgType()) {}
  10. ApplicationMessageReport(const FIX::Message& m) : Message(m) {}
  11. ApplicationMessageReport(const Message& m) : Message(m) {}
  12. ApplicationMessageReport(const ApplicationMessageReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BY"); }
  14. ApplicationMessageReport(
  15. const FIX::ApplReportID& aApplReportID,
  16. const FIX::ApplReportType& aApplReportType )
  17. : Message(MsgType())
  18. {
  19. set(aApplReportID);
  20. set(aApplReportType);
  21. }
  22. FIELD_SET(*this, FIX::ApplReportID);
  23. FIELD_SET(*this, FIX::ApplReportType);
  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,1399,1357,0)) {}
  29. FIELD_SET(*this, FIX::RefApplID);
  30. FIELD_SET(*this, FIX::ApplNewSeqNum);
  31. FIELD_SET(*this, FIX::RefApplLastSeqNum);
  32. };
  33. FIELD_SET(*this, FIX::Text);
  34. FIELD_SET(*this, FIX::EncodedTextLen);
  35. FIELD_SET(*this, FIX::EncodedText);
  36. FIELD_SET(*this, FIX::ApplReqID);
  37. };
  38. }
  39. #endif