Email.h 949 B

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