Advertisement.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef FIX42_ADVERTISEMENT_H
  2. #define FIX42_ADVERTISEMENT_H
  3. #include "Message.h"
  4. namespace FIX42
  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::SecurityType);
  36. FIELD_SET(*this, FIX::MaturityMonthYear);
  37. FIELD_SET(*this, FIX::MaturityDay);
  38. FIELD_SET(*this, FIX::PutOrCall);
  39. FIELD_SET(*this, FIX::StrikePrice);
  40. FIELD_SET(*this, FIX::OptAttribute);
  41. FIELD_SET(*this, FIX::ContractMultiplier);
  42. FIELD_SET(*this, FIX::CouponRate);
  43. FIELD_SET(*this, FIX::SecurityExchange);
  44. FIELD_SET(*this, FIX::Issuer);
  45. FIELD_SET(*this, FIX::EncodedIssuerLen);
  46. FIELD_SET(*this, FIX::EncodedIssuer);
  47. FIELD_SET(*this, FIX::SecurityDesc);
  48. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  49. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  50. FIELD_SET(*this, FIX::AdvSide);
  51. FIELD_SET(*this, FIX::Shares);
  52. FIELD_SET(*this, FIX::Price);
  53. FIELD_SET(*this, FIX::Currency);
  54. FIELD_SET(*this, FIX::TradeDate);
  55. FIELD_SET(*this, FIX::TransactTime);
  56. FIELD_SET(*this, FIX::Text);
  57. FIELD_SET(*this, FIX::EncodedTextLen);
  58. FIELD_SET(*this, FIX::EncodedText);
  59. FIELD_SET(*this, FIX::URLLink);
  60. FIELD_SET(*this, FIX::LastMkt);
  61. FIELD_SET(*this, FIX::TradingSessionID);
  62. };
  63. }
  64. #endif