AllocationInstructionAck.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef FIX42_ALLOCATIONINSTRUCTIONACK_H
  2. #define FIX42_ALLOCATIONINSTRUCTIONACK_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class AllocationInstructionAck : public Message
  7. {
  8. public:
  9. AllocationInstructionAck() : Message(MsgType()) {}
  10. AllocationInstructionAck(const FIX::Message& m) : Message(m) {}
  11. AllocationInstructionAck(const Message& m) : Message(m) {}
  12. AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("P"); }
  14. AllocationInstructionAck(
  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::ClientID);
  25. FIELD_SET(*this, FIX::ExecBroker);
  26. FIELD_SET(*this, FIX::AllocID);
  27. FIELD_SET(*this, FIX::TradeDate);
  28. FIELD_SET(*this, FIX::TransactTime);
  29. FIELD_SET(*this, FIX::AllocStatus);
  30. FIELD_SET(*this, FIX::AllocRejCode);
  31. FIELD_SET(*this, FIX::Text);
  32. FIELD_SET(*this, FIX::EncodedTextLen);
  33. FIELD_SET(*this, FIX::EncodedText);
  34. };
  35. }
  36. #endif