IOI.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef FIX40_IOI_H
  2. #define FIX40_IOI_H
  3. #include "Message.h"
  4. namespace FIX40
  5. {
  6. class IOI : public Message
  7. {
  8. public:
  9. IOI() : Message(MsgType()) {}
  10. IOI(const FIX::Message& m) : Message(m) {}
  11. IOI(const Message& m) : Message(m) {}
  12. IOI(const IOI& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("6"); }
  14. IOI(
  15. const FIX::IOIid& aIOIid,
  16. const FIX::IOITransType& aIOITransType,
  17. const FIX::Symbol& aSymbol,
  18. const FIX::Side& aSide,
  19. const FIX::IOIShares& aIOIShares )
  20. : Message(MsgType())
  21. {
  22. set(aIOIid);
  23. set(aIOITransType);
  24. set(aSymbol);
  25. set(aSide);
  26. set(aIOIShares);
  27. }
  28. FIELD_SET(*this, FIX::IOIid);
  29. FIELD_SET(*this, FIX::IOITransType);
  30. FIELD_SET(*this, FIX::IOIRefID);
  31. FIELD_SET(*this, FIX::Symbol);
  32. FIELD_SET(*this, FIX::SymbolSfx);
  33. FIELD_SET(*this, FIX::SecurityID);
  34. FIELD_SET(*this, FIX::IDSource);
  35. FIELD_SET(*this, FIX::Issuer);
  36. FIELD_SET(*this, FIX::SecurityDesc);
  37. FIELD_SET(*this, FIX::Side);
  38. FIELD_SET(*this, FIX::IOIShares);
  39. FIELD_SET(*this, FIX::Price);
  40. FIELD_SET(*this, FIX::Currency);
  41. FIELD_SET(*this, FIX::ValidUntilTime);
  42. FIELD_SET(*this, FIX::IOIQltyInd);
  43. FIELD_SET(*this, FIX::IOIOthSvc);
  44. FIELD_SET(*this, FIX::IOINaturalFlag);
  45. FIELD_SET(*this, FIX::IOIQualifier);
  46. FIELD_SET(*this, FIX::Text);
  47. };
  48. }
  49. #endif