UserRequest.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef FIX50SP1_USERREQUEST_H
  2. #define FIX50SP1_USERREQUEST_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  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::EncryptedPasswordMethod);
  30. FIELD_SET(*this, FIX::EncryptedPasswordLen);
  31. FIELD_SET(*this, FIX::EncryptedPassword);
  32. FIELD_SET(*this, FIX::EncryptedNewPasswordLen);
  33. FIELD_SET(*this, FIX::EncryptedNewPassword);
  34. FIELD_SET(*this, FIX::RawDataLength);
  35. FIELD_SET(*this, FIX::RawData);
  36. };
  37. }
  38. #endif