Email.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef FIX41_EMAIL_H
  2. #define FIX41_EMAIL_H
  3. #include "Message.h"
  4. namespace FIX41
  5. {
  6. class Email : public Message
  7. {
  8. public:
  9. Email() : Message(MsgType()) {}
  10. Email(const FIX::Message& m) : Message(m) {}
  11. Email(const Message& m) : Message(m) {}
  12. Email(const Email& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("C"); }
  14. Email(
  15. const FIX::EmailThreadID& aEmailThreadID,
  16. const FIX::EmailType& aEmailType,
  17. const FIX::Subject& aSubject )
  18. : Message(MsgType())
  19. {
  20. set(aEmailThreadID);
  21. set(aEmailType);
  22. set(aSubject);
  23. }
  24. FIELD_SET(*this, FIX::EmailThreadID);
  25. FIELD_SET(*this, FIX::EmailType);
  26. FIELD_SET(*this, FIX::OrigTime);
  27. FIELD_SET(*this, FIX::Subject);
  28. FIELD_SET(*this, FIX::OrderID);
  29. FIELD_SET(*this, FIX::ClOrdID);
  30. FIELD_SET(*this, FIX::RawDataLength);
  31. FIELD_SET(*this, FIX::RawData);
  32. FIELD_SET(*this, FIX::NoRelatedSym);
  33. class NoRelatedSym: public FIX::Group
  34. {
  35. public:
  36. NoRelatedSym() : FIX::Group(146,46,FIX::message_order(46,65,48,22,167,200,205,201,202,206,207,106,107,0)) {}
  37. FIELD_SET(*this, FIX::RelatdSym);
  38. FIELD_SET(*this, FIX::SymbolSfx);
  39. FIELD_SET(*this, FIX::SecurityID);
  40. FIELD_SET(*this, FIX::IDSource);
  41. FIELD_SET(*this, FIX::SecurityType);
  42. FIELD_SET(*this, FIX::MaturityMonthYear);
  43. FIELD_SET(*this, FIX::MaturityDay);
  44. FIELD_SET(*this, FIX::PutOrCall);
  45. FIELD_SET(*this, FIX::StrikePrice);
  46. FIELD_SET(*this, FIX::OptAttribute);
  47. FIELD_SET(*this, FIX::SecurityExchange);
  48. FIELD_SET(*this, FIX::Issuer);
  49. FIELD_SET(*this, FIX::SecurityDesc);
  50. };
  51. FIELD_SET(*this, FIX::LinesOfText);
  52. class LinesOfText: public FIX::Group
  53. {
  54. public:
  55. LinesOfText() : FIX::Group(33,58,FIX::message_order(58,0)) {}
  56. FIELD_SET(*this, FIX::Text);
  57. };
  58. };
  59. }
  60. #endif