DontKnowTrade.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef FIX40_DONTKNOWTRADE_H
  2. #define FIX40_DONTKNOWTRADE_H
  3. #include "Message.h"
  4. namespace FIX40
  5. {
  6. class DontKnowTrade : public Message
  7. {
  8. public:
  9. DontKnowTrade() : Message(MsgType()) {}
  10. DontKnowTrade(const FIX::Message& m) : Message(m) {}
  11. DontKnowTrade(const Message& m) : Message(m) {}
  12. DontKnowTrade(const DontKnowTrade& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("Q"); }
  14. DontKnowTrade(
  15. const FIX::DKReason& aDKReason,
  16. const FIX::Symbol& aSymbol,
  17. const FIX::Side& aSide,
  18. const FIX::OrderQty& aOrderQty,
  19. const FIX::LastShares& aLastShares,
  20. const FIX::LastPx& aLastPx )
  21. : Message(MsgType())
  22. {
  23. set(aDKReason);
  24. set(aSymbol);
  25. set(aSide);
  26. set(aOrderQty);
  27. set(aLastShares);
  28. set(aLastPx);
  29. }
  30. FIELD_SET(*this, FIX::OrderID);
  31. FIELD_SET(*this, FIX::ExecID);
  32. FIELD_SET(*this, FIX::DKReason);
  33. FIELD_SET(*this, FIX::Symbol);
  34. FIELD_SET(*this, FIX::Side);
  35. FIELD_SET(*this, FIX::OrderQty);
  36. FIELD_SET(*this, FIX::LastShares);
  37. FIELD_SET(*this, FIX::LastPx);
  38. FIELD_SET(*this, FIX::Text);
  39. };
  40. }
  41. #endif