Message.h 817 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef FIX50_MESSAGES_H
  2. #define FIX50_MESSAGES_H
  3. #include "../Message.h"
  4. #include "../Group.h"
  5. namespace FIX50
  6. {
  7. class Header : public FIX::Header
  8. {
  9. public:
  10. };
  11. class Trailer : public FIX::Trailer
  12. {
  13. public:
  14. };
  15. class Message : public FIX::Message
  16. {
  17. public:
  18. Message( const FIX::MsgType& msgtype )
  19. : FIX::Message(
  20. FIX::BeginString("FIXT.1.1"), msgtype )
  21. { getHeader().setField( FIX::ApplVerID("7") ); }
  22. Message(const FIX::Message& m) : FIX::Message(m) {}
  23. Message(const Message& m) : FIX::Message(m) {}
  24. Header& getHeader() { return (Header&)m_header; }
  25. const Header& getHeader() const { return (Header&)m_header; }
  26. Trailer& getTrailer() { return (Trailer&)m_trailer; }
  27. const Trailer& getTrailer() const { return (Trailer&)m_trailer; }
  28. };
  29. }
  30. #endif