News.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #ifndef FIX43_NEWS_H
  2. #define FIX43_NEWS_H
  3. #include "Message.h"
  4. namespace FIX43
  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,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {}
  41. FIELD_SET(*this, FIX::Symbol);
  42. FIELD_SET(*this, FIX::SymbolSfx);
  43. FIELD_SET(*this, FIX::SecurityID);
  44. FIELD_SET(*this, FIX::SecurityIDSource);
  45. FIELD_SET(*this, FIX::Product);
  46. FIELD_SET(*this, FIX::CFICode);
  47. FIELD_SET(*this, FIX::SecurityType);
  48. FIELD_SET(*this, FIX::MaturityMonthYear);
  49. FIELD_SET(*this, FIX::MaturityDate);
  50. FIELD_SET(*this, FIX::CouponPaymentDate);
  51. FIELD_SET(*this, FIX::IssueDate);
  52. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  53. FIELD_SET(*this, FIX::RepurchaseTerm);
  54. FIELD_SET(*this, FIX::RepurchaseRate);
  55. FIELD_SET(*this, FIX::Factor);
  56. FIELD_SET(*this, FIX::CreditRating);
  57. FIELD_SET(*this, FIX::InstrRegistry);
  58. FIELD_SET(*this, FIX::CountryOfIssue);
  59. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  60. FIELD_SET(*this, FIX::LocaleOfIssue);
  61. FIELD_SET(*this, FIX::RedemptionDate);
  62. FIELD_SET(*this, FIX::StrikePrice);
  63. FIELD_SET(*this, FIX::OptAttribute);
  64. FIELD_SET(*this, FIX::ContractMultiplier);
  65. FIELD_SET(*this, FIX::CouponRate);
  66. FIELD_SET(*this, FIX::SecurityExchange);
  67. FIELD_SET(*this, FIX::Issuer);
  68. FIELD_SET(*this, FIX::EncodedIssuerLen);
  69. FIELD_SET(*this, FIX::EncodedIssuer);
  70. FIELD_SET(*this, FIX::SecurityDesc);
  71. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  72. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  73. FIELD_SET(*this, FIX::NoSecurityAltID);
  74. class NoSecurityAltID: public FIX::Group
  75. {
  76. public:
  77. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  78. FIELD_SET(*this, FIX::SecurityAltID);
  79. FIELD_SET(*this, FIX::SecurityAltIDSource);
  80. };
  81. };
  82. FIELD_SET(*this, FIX::LinesOfText);
  83. class LinesOfText: public FIX::Group
  84. {
  85. public:
  86. LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {}
  87. FIELD_SET(*this, FIX::Text);
  88. FIELD_SET(*this, FIX::EncodedTextLen);
  89. FIELD_SET(*this, FIX::EncodedText);
  90. };
  91. };
  92. }
  93. #endif