UserNotification.h 800 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef FIX50SP1_USERNOTIFICATION_H
  2. #define FIX50SP1_USERNOTIFICATION_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class UserNotification : public Message
  7. {
  8. public:
  9. UserNotification() : Message(MsgType()) {}
  10. UserNotification(const FIX::Message& m) : Message(m) {}
  11. UserNotification(const Message& m) : Message(m) {}
  12. UserNotification(const UserNotification& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("CB"); }
  14. UserNotification(
  15. const FIX::UserStatus& aUserStatus )
  16. : Message(MsgType())
  17. {
  18. set(aUserStatus);
  19. }
  20. FIELD_SET(*this, FIX::Username);
  21. FIELD_SET(*this, FIX::UserStatus);
  22. FIELD_SET(*this, FIX::Text);
  23. FIELD_SET(*this, FIX::EncodedTextLen);
  24. FIELD_SET(*this, FIX::EncodedText);
  25. };
  26. }
  27. #endif