News.h 803 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef FIX40_NEWS_H
  2. #define FIX40_NEWS_H
  3. #include "Message.h"
  4. namespace FIX40
  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::LinesOfText& aLinesOfText,
  16. const FIX::Text& aText )
  17. : Message(MsgType())
  18. {
  19. set(aLinesOfText);
  20. set(aText);
  21. }
  22. FIELD_SET(*this, FIX::OrigTime);
  23. FIELD_SET(*this, FIX::Urgency);
  24. FIELD_SET(*this, FIX::RelatdSym);
  25. FIELD_SET(*this, FIX::LinesOfText);
  26. FIELD_SET(*this, FIX::Text);
  27. FIELD_SET(*this, FIX::RawDataLength);
  28. FIELD_SET(*this, FIX::RawData);
  29. };
  30. }
  31. #endif