AllocationInstructionAck.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FIX40_ALLOCATIONINSTRUCTIONACK_H
  2. #define FIX40_ALLOCATIONINSTRUCTIONACK_H
  3. #include "Message.h"
  4. namespace FIX40
  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. };
  33. }
  34. #endif