AllocationAck.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef FIX43_ALLOCATIONACK_H
  2. #define FIX43_ALLOCATIONACK_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class AllocationAck : public Message
  7. {
  8. public:
  9. AllocationAck() : Message(MsgType()) {}
  10. AllocationAck(const FIX::Message& m) : Message(m) {}
  11. AllocationAck(const Message& m) : Message(m) {}
  12. AllocationAck(const AllocationAck& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("P"); }
  14. AllocationAck(
  15. const FIX::AllocID& aAllocID,
  16. const FIX::TradeDate& aTradeDate,
  17. const FIX::AllocStatus& aAllocStatus )
  18. : Message(MsgType())
  19. {
  20. set(aAllocID);
  21. set(aTradeDate);
  22. set(aAllocStatus);
  23. }
  24. FIELD_SET(*this, FIX::NoPartyIDs);
  25. class NoPartyIDs: public FIX::Group
  26. {
  27. public:
  28. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  29. FIELD_SET(*this, FIX::PartyID);
  30. FIELD_SET(*this, FIX::PartyIDSource);
  31. FIELD_SET(*this, FIX::PartyRole);
  32. FIELD_SET(*this, FIX::PartySubID);
  33. };
  34. FIELD_SET(*this, FIX::AllocID);
  35. FIELD_SET(*this, FIX::TradeDate);
  36. FIELD_SET(*this, FIX::TransactTime);
  37. FIELD_SET(*this, FIX::AllocStatus);
  38. FIELD_SET(*this, FIX::AllocRejCode);
  39. FIELD_SET(*this, FIX::Text);
  40. FIELD_SET(*this, FIX::EncodedTextLen);
  41. FIELD_SET(*this, FIX::EncodedText);
  42. FIELD_SET(*this, FIX::LegalConfirm);
  43. };
  44. }
  45. #endif