RegistrationInstructionsResponse.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef FIX50SP2_REGISTRATIONINSTRUCTIONSRESPONSE_H
  2. #define FIX50SP2_REGISTRATIONINSTRUCTIONSRESPONSE_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  5. {
  6. class RegistrationInstructionsResponse : public Message
  7. {
  8. public:
  9. RegistrationInstructionsResponse() : Message(MsgType()) {}
  10. RegistrationInstructionsResponse(const FIX::Message& m) : Message(m) {}
  11. RegistrationInstructionsResponse(const Message& m) : Message(m) {}
  12. RegistrationInstructionsResponse(const RegistrationInstructionsResponse& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("p"); }
  14. RegistrationInstructionsResponse(
  15. const FIX::RegistID& aRegistID,
  16. const FIX::RegistTransType& aRegistTransType,
  17. const FIX::RegistRefID& aRegistRefID,
  18. const FIX::RegistStatus& aRegistStatus )
  19. : Message(MsgType())
  20. {
  21. set(aRegistID);
  22. set(aRegistTransType);
  23. set(aRegistRefID);
  24. set(aRegistStatus);
  25. }
  26. FIELD_SET(*this, FIX::RegistID);
  27. FIELD_SET(*this, FIX::RegistTransType);
  28. FIELD_SET(*this, FIX::RegistRefID);
  29. FIELD_SET(*this, FIX::ClOrdID);
  30. FIELD_SET(*this, FIX::NoPartyIDs);
  31. class NoPartyIDs: public FIX::Group
  32. {
  33. public:
  34. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  35. FIELD_SET(*this, FIX::PartyID);
  36. FIELD_SET(*this, FIX::PartyIDSource);
  37. FIELD_SET(*this, FIX::PartyRole);
  38. FIELD_SET(*this, FIX::NoPartySubIDs);
  39. class NoPartySubIDs: public FIX::Group
  40. {
  41. public:
  42. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  43. FIELD_SET(*this, FIX::PartySubID);
  44. FIELD_SET(*this, FIX::PartySubIDType);
  45. };
  46. };
  47. FIELD_SET(*this, FIX::Account);
  48. FIELD_SET(*this, FIX::AcctIDSource);
  49. FIELD_SET(*this, FIX::RegistStatus);
  50. FIELD_SET(*this, FIX::RegistRejReasonCode);
  51. FIELD_SET(*this, FIX::RegistRejReasonText);
  52. };
  53. }
  54. #endif