[Quickfix-developers] User Defined Message Types....
Brought to you by:
orenmnero
From: Austin <au...@io...> - 2003-02-11 17:46:42
|
Can you please help, I have defined my own type as below but the two standard constructors are causing compilation error... Many thanks constructors... SPEXOrderSingle() : Message( MsgType() ) {} SPEXOrderSingle( const Message& m ) : Message( m ) {} Actual code..... . . . namespace FIX { const char MsgType_SPEXOrderSingle[] = "D"; const char MsgType_SPEXExecutionReport[] = "8"; const char MsgType_SPEXOrderCancelReplaceRequest[] = "G"; const char MsgType_SPEXOrderCancelRequest[] = "F"; const char MsgType_SPEXOrderMassCancelRequest[] = "q"; const char MsgType_SPEXOrderMassCancelReport[] = "r"; //=============================================== class SPEXOrderSingle : public FIX42::Message { //=============================================== public: SPEXOrderSingle() : Message( MsgType() ) {} SPEXOrderSingle( const Message& m ) : Message( m ) {} static FIX::MsgType MsgType() { return FIX::MsgType( "D" ); } SPEXOrderSingle( const FIX::ClOrdID& aClOrdID, const FIX::ClOrdLinkID& aClOrdLinkID, const FIX::UUID& aUUID, const FIX::HandlInst& aHandlInst, const FIX::OrderQty& aOrderQty, const FIX::Side& aSide, const FIX::TransactTime& aTransactTime, const FIX::OrdType& aOrdType ) : Message( FIX::MsgType( "D" ) ) { set( aClOrdID ); set( aClOrdLinkID ); set( aUUID ); set( aHandlInst ); set( aOrderQty ); set( aSide ); set( aTransactTime ); set( aOrdType ); } FIELD_SET( *this, FIX::ClOrdID ); FIELD_SET( *this, FIX::ClOrdLinkID ); FIELD_SET( *this, FIX::UUID ); FIELD_SET( *this, FIX::ClientID ); FIELD_SET( *this, FIX::Account ); FIELD_SET( *this, FIX::SettlmntTyp ); FIELD_SET( *this, FIX::FutSettDate ); FIELD_SET( *this, FIX::HandlInst ); FIELD_SET( *this, FIX::SecurityID ); FIELD_SET( *this, FIX::IDSource ); FIELD_SET( *this, FIX::Side ); FIELD_SET( *this, FIX::LocateReqd ); FIELD_SET( *this, FIX::TransactTime ); FIELD_SET( *this, FIX::OrderQty ); FIELD_SET( *this, FIX::OrdType ); FIELD_SET( *this, FIX::Price ); FIELD_SET( *this, FIX::ExpireTime ); FIELD_SET( *this, FIX::TradingSessionID ); FIELD_SET( *this, FIX::BenchmarkCurveName ); FIELD_SET( *this, FIX::SpexMaturity ); FIELD_SET( *this, FIX::PriceType ); FIELD_SET( *this, FIX::ExecID ); FIELD_SET( *this, FIX::SettlLocation ); FIELD_SET( *this, FIX::AccountType ); FIELD_SET( *this, FIX::PreallocMethod ); FIELD_SET( *this, FIX::PartyId ); FIELD_SET( *this, FIX::UnderlyingSecurityID ); FIELD_SET( *this, FIX::UnderlyingIDSource ); FIELD_SET( *this, FIX::SpreadToBenchmark ); }; } |