Email.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #ifndef FIX43_EMAIL_H
  2. #define FIX43_EMAIL_H
  3. #include "Message.h"
  4. namespace FIX43
  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::EncodedSubjectLen);
  29. FIELD_SET(*this, FIX::EncodedSubject);
  30. FIELD_SET(*this, FIX::OrderID);
  31. FIELD_SET(*this, FIX::ClOrdID);
  32. FIELD_SET(*this, FIX::RawDataLength);
  33. FIELD_SET(*this, FIX::RawData);
  34. FIELD_SET(*this, FIX::NoRoutingIDs);
  35. class NoRoutingIDs: public FIX::Group
  36. {
  37. public:
  38. NoRoutingIDs() : FIX::Group(215,216,FIX::message_order(216,217,0)) {}
  39. FIELD_SET(*this, FIX::RoutingType);
  40. FIELD_SET(*this, FIX::RoutingID);
  41. };
  42. FIELD_SET(*this, FIX::NoRelatedSym);
  43. class NoRelatedSym: public FIX::Group
  44. {
  45. public:
  46. 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)) {}
  47. FIELD_SET(*this, FIX::Symbol);
  48. FIELD_SET(*this, FIX::SymbolSfx);
  49. FIELD_SET(*this, FIX::SecurityID);
  50. FIELD_SET(*this, FIX::SecurityIDSource);
  51. FIELD_SET(*this, FIX::Product);
  52. FIELD_SET(*this, FIX::CFICode);
  53. FIELD_SET(*this, FIX::SecurityType);
  54. FIELD_SET(*this, FIX::MaturityMonthYear);
  55. FIELD_SET(*this, FIX::MaturityDate);
  56. FIELD_SET(*this, FIX::CouponPaymentDate);
  57. FIELD_SET(*this, FIX::IssueDate);
  58. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  59. FIELD_SET(*this, FIX::RepurchaseTerm);
  60. FIELD_SET(*this, FIX::RepurchaseRate);
  61. FIELD_SET(*this, FIX::Factor);
  62. FIELD_SET(*this, FIX::CreditRating);
  63. FIELD_SET(*this, FIX::InstrRegistry);
  64. FIELD_SET(*this, FIX::CountryOfIssue);
  65. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  66. FIELD_SET(*this, FIX::LocaleOfIssue);
  67. FIELD_SET(*this, FIX::RedemptionDate);
  68. FIELD_SET(*this, FIX::StrikePrice);
  69. FIELD_SET(*this, FIX::OptAttribute);
  70. FIELD_SET(*this, FIX::ContractMultiplier);
  71. FIELD_SET(*this, FIX::CouponRate);
  72. FIELD_SET(*this, FIX::SecurityExchange);
  73. FIELD_SET(*this, FIX::Issuer);
  74. FIELD_SET(*this, FIX::EncodedIssuerLen);
  75. FIELD_SET(*this, FIX::EncodedIssuer);
  76. FIELD_SET(*this, FIX::SecurityDesc);
  77. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  78. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  79. FIELD_SET(*this, FIX::NoSecurityAltID);
  80. class NoSecurityAltID: public FIX::Group
  81. {
  82. public:
  83. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  84. FIELD_SET(*this, FIX::SecurityAltID);
  85. FIELD_SET(*this, FIX::SecurityAltIDSource);
  86. };
  87. };
  88. FIELD_SET(*this, FIX::LinesOfText);
  89. class LinesOfText: public FIX::Group
  90. {
  91. public:
  92. LinesOfText() : FIX::Group(33,58,FIX::message_order(58,354,355,0)) {}
  93. FIELD_SET(*this, FIX::Text);
  94. FIELD_SET(*this, FIX::EncodedTextLen);
  95. FIELD_SET(*this, FIX::EncodedText);
  96. };
  97. };
  98. }
  99. #endif