UserRequest.h 982 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef FIX44_USERREQUEST_H
  2. #define FIX44_USERREQUEST_H
  3. #include "Message.h"
  4. namespace FIX44
  5. {
  6. class UserRequest : public Message
  7. {
  8. public:
  9. UserRequest() : Message(MsgType()) {}
  10. UserRequest(const FIX::Message& m) : Message(m) {}
  11. UserRequest(const Message& m) : Message(m) {}
  12. UserRequest(const UserRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BE"); }
  14. UserRequest(
  15. const FIX::UserRequestID& aUserRequestID,
  16. const FIX::UserRequestType& aUserRequestType,
  17. const FIX::Username& aUsername )
  18. : Message(MsgType())
  19. {
  20. set(aUserRequestID);
  21. set(aUserRequestType);
  22. set(aUsername);
  23. }
  24. FIELD_SET(*this, FIX::UserRequestID);
  25. FIELD_SET(*this, FIX::UserRequestType);
  26. FIELD_SET(*this, FIX::Username);
  27. FIELD_SET(*this, FIX::Password);
  28. FIELD_SET(*this, FIX::NewPassword);
  29. FIELD_SET(*this, FIX::RawDataLength);
  30. FIELD_SET(*this, FIX::RawData);
  31. };
  32. }
  33. #endif