ApplicationMessageReport.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef FIX50SP1_APPLICATIONMESSAGEREPORT_H
  2. #define FIX50SP1_APPLICATIONMESSAGEREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  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. };
  37. }
  38. #endif