UserResponse.h 802 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef FIX50SP2_USERRESPONSE_H
  2. #define FIX50SP2_USERRESPONSE_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  5. {
  6. class UserResponse : public Message
  7. {
  8. public:
  9. UserResponse() : Message(MsgType()) {}
  10. UserResponse(const FIX::Message& m) : Message(m) {}
  11. UserResponse(const Message& m) : Message(m) {}
  12. UserResponse(const UserResponse& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BF"); }
  14. UserResponse(
  15. const FIX::UserRequestID& aUserRequestID,
  16. const FIX::Username& aUsername )
  17. : Message(MsgType())
  18. {
  19. set(aUserRequestID);
  20. set(aUsername);
  21. }
  22. FIELD_SET(*this, FIX::UserRequestID);
  23. FIELD_SET(*this, FIX::Username);
  24. FIELD_SET(*this, FIX::UserStatus);
  25. FIELD_SET(*this, FIX::UserStatusText);
  26. };
  27. }
  28. #endif