News.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef FIX41_NEWS_H
  2. #define FIX41_NEWS_H
  3. #include "Message.h"
  4. namespace FIX41
  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::URLLink);
  24. FIELD_SET(*this, FIX::RawDataLength);
  25. FIELD_SET(*this, FIX::RawData);
  26. FIELD_SET(*this, FIX::NoRelatedSym);
  27. class NoRelatedSym: public FIX::Group
  28. {
  29. public:
  30. NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {}
  31. FIELD_SET(*this, FIX::RelatdSym);
  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::SecurityExchange);
  42. FIELD_SET(*this, FIX::Issuer);
  43. FIELD_SET(*this, FIX::SecurityDesc);
  44. };
  45. FIELD_SET(*this, FIX::LinesOfText);
  46. class LinesOfText: public FIX::Group
  47. {
  48. public:
  49. LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {}
  50. FIELD_SET(*this, FIX::Text);
  51. };
  52. };
  53. }
  54. #endif