Advertisement.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef FIX40_ADVERTISEMENT_H
  2. #define FIX40_ADVERTISEMENT_H
  3. #include "Message.h"
  4. namespace FIX40
  5. {
  6. class Advertisement : public Message
  7. {
  8. public:
  9. Advertisement() : Message(MsgType()) {}
  10. Advertisement(const FIX::Message& m) : Message(m) {}
  11. Advertisement(const Message& m) : Message(m) {}
  12. Advertisement(const Advertisement& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("7"); }
  14. Advertisement(
  15. const FIX::AdvId& aAdvId,
  16. const FIX::AdvTransType& aAdvTransType,
  17. const FIX::Symbol& aSymbol,
  18. const FIX::AdvSide& aAdvSide,
  19. const FIX::Shares& aShares )
  20. : Message(MsgType())
  21. {
  22. set(aAdvId);
  23. set(aAdvTransType);
  24. set(aSymbol);
  25. set(aAdvSide);
  26. set(aShares);
  27. }
  28. FIELD_SET(*this, FIX::AdvId);
  29. FIELD_SET(*this, FIX::AdvTransType);
  30. FIELD_SET(*this, FIX::AdvRefID);
  31. FIELD_SET(*this, FIX::Symbol);
  32. FIELD_SET(*this, FIX::SymbolSfx);
  33. FIELD_SET(*this, FIX::SecurityID);
  34. FIELD_SET(*this, FIX::IDSource);
  35. FIELD_SET(*this, FIX::Issuer);
  36. FIELD_SET(*this, FIX::SecurityDesc);
  37. FIELD_SET(*this, FIX::AdvSide);
  38. FIELD_SET(*this, FIX::Shares);
  39. FIELD_SET(*this, FIX::Price);
  40. FIELD_SET(*this, FIX::Currency);
  41. FIELD_SET(*this, FIX::TransactTime);
  42. FIELD_SET(*this, FIX::Text);
  43. };
  44. }
  45. #endif