News.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef FIX42_NEWS_H
  2. #define FIX42_NEWS_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class News : public Message
  7. {
  8. public:
  9. News() : Message(MsgType()) {}
  10. News(const FIX::Message& m) : Message(m) {}
  11. News(const Message& m) : Message(m) {}
  12. News(const News& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("B"); }
  14. News(
  15. const FIX::Headline& aHeadline )
  16. : Message(MsgType())
  17. {
  18. set(aHeadline);
  19. }
  20. FIELD_SET(*this, FIX::OrigTime);
  21. FIELD_SET(*this, FIX::Urgency);
  22. FIELD_SET(*this, FIX::Headline);
  23. FIELD_SET(*this, FIX::EncodedHeadlineLen);
  24. FIELD_SET(*this, FIX::EncodedHeadline);
  25. FIELD_SET(*this, FIX::URLLink);
  26. FIELD_SET(*this, FIX::RawDataLength);
  27. FIELD_SET(*this, FIX::RawData);
  28. FIELD_SET(*this, FIX::NoRoutingIDs);
  29. class NoRoutingIDs: public FIX::Group
  30. {
  31. public:
  32. NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {}
  33. FIELD_SET(*this, FIX::RoutingType);
  34. FIELD_SET(*this, FIX::RoutingID);
  35. };
  36. FIELD_SET(*this, FIX::NoRelatedSym);
  37. class NoRelatedSym: public FIX::Group
  38. {
  39. public:
  40. NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,0)) {}
  41. FIELD_SET(*this, FIX::RelatdSym);
  42. FIELD_SET(*this, FIX::SymbolSfx);
  43. FIELD_SET(*this, FIX::SecurityID);
  44. FIELD_SET(*this, FIX::IDSource);
  45. FIELD_SET(*this, FIX::SecurityType);
  46. FIELD_SET(*this, FIX::MaturityMonthYear);
  47. FIELD_SET(*this, FIX::MaturityDay);
  48. FIELD_SET(*this, FIX::PutOrCall);
  49. FIELD_SET(*this, FIX::StrikePrice);
  50. FIELD_SET(*this, FIX::OptAttribute);
  51. FIELD_SET(*this, FIX::ContractMultiplier);
  52. FIELD_SET(*this, FIX::CouponRate);
  53. FIELD_SET(*this, FIX::SecurityExchange);
  54. FIELD_SET(*this, FIX::Issuer);
  55. FIELD_SET(*this, FIX::EncodedIssuerLen);
  56. FIELD_SET(*this, FIX::EncodedIssuer);
  57. FIELD_SET(*this, FIX::SecurityDesc);
  58. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  59. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  60. };
  61. FIELD_SET(*this, FIX::LinesOfText);
  62. class LinesOfText: public FIX::Group
  63. {
  64. public:
  65. LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {}
  66. FIELD_SET(*this, FIX::Text);
  67. FIELD_SET(*this, FIX::EncodedTextLen);
  68. FIELD_SET(*this, FIX::EncodedText);
  69. };
  70. };
  71. }
  72. #endif