AllocationReportAck.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef FIX44_ALLOCATIONREPORTACK_H
  2. #define FIX44_ALLOCATIONREPORTACK_H
  3. #include "Message.h"
  4. namespace FIX44
  5. {
  6. class AllocationReportAck : public Message
  7. {
  8. public:
  9. AllocationReportAck() : Message(MsgType()) {}
  10. AllocationReportAck(const FIX::Message& m) : Message(m) {}
  11. AllocationReportAck(const Message& m) : Message(m) {}
  12. AllocationReportAck(const AllocationReportAck& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AT"); }
  14. AllocationReportAck(
  15. const FIX::AllocReportID& aAllocReportID,
  16. const FIX::AllocID& aAllocID,
  17. const FIX::TransactTime& aTransactTime,
  18. const FIX::AllocStatus& aAllocStatus )
  19. : Message(MsgType())
  20. {
  21. set(aAllocReportID);
  22. set(aAllocID);
  23. set(aTransactTime);
  24. set(aAllocStatus);
  25. }
  26. FIELD_SET(*this, FIX::AllocReportID);
  27. FIELD_SET(*this, FIX::AllocID);
  28. FIELD_SET(*this, FIX::NoPartyIDs);
  29. class NoPartyIDs: public FIX::Group
  30. {
  31. public:
  32. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  33. FIELD_SET(*this, FIX::PartyID);
  34. FIELD_SET(*this, FIX::PartyIDSource);
  35. FIELD_SET(*this, FIX::PartyRole);
  36. FIELD_SET(*this, FIX::NoPartySubIDs);
  37. class NoPartySubIDs: public FIX::Group
  38. {
  39. public:
  40. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  41. FIELD_SET(*this, FIX::PartySubID);
  42. FIELD_SET(*this, FIX::PartySubIDType);
  43. };
  44. };
  45. FIELD_SET(*this, FIX::SecondaryAllocID);
  46. FIELD_SET(*this, FIX::TradeDate);
  47. FIELD_SET(*this, FIX::TransactTime);
  48. FIELD_SET(*this, FIX::AllocStatus);
  49. FIELD_SET(*this, FIX::AllocRejCode);
  50. FIELD_SET(*this, FIX::AllocReportType);
  51. FIELD_SET(*this, FIX::AllocIntermedReqType);
  52. FIELD_SET(*this, FIX::MatchStatus);
  53. FIELD_SET(*this, FIX::Product);
  54. FIELD_SET(*this, FIX::SecurityType);
  55. FIELD_SET(*this, FIX::Text);
  56. FIELD_SET(*this, FIX::EncodedTextLen);
  57. FIELD_SET(*this, FIX::EncodedText);
  58. FIELD_SET(*this, FIX::NoAllocs);
  59. class NoAllocs: public FIX::Group
  60. {
  61. public:
  62. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,366,467,776,161,360,361,0)) {}
  63. FIELD_SET(*this, FIX::AllocAccount);
  64. FIELD_SET(*this, FIX::AllocAcctIDSource);
  65. FIELD_SET(*this, FIX::AllocPrice);
  66. FIELD_SET(*this, FIX::IndividualAllocID);
  67. FIELD_SET(*this, FIX::IndividualAllocRejCode);
  68. FIELD_SET(*this, FIX::AllocText);
  69. FIELD_SET(*this, FIX::EncodedAllocTextLen);
  70. FIELD_SET(*this, FIX::EncodedAllocText);
  71. };
  72. };
  73. }
  74. #endif