[Quickfix-developers] ExecutionReport
Brought to you by:
orenmnero
From: <Bjo...@ub...> - 2004-04-20 17:14:50
|
Hello, according to the fix documentation one should get a compiler warning when accessing a tag, which is not defined for a message. Here an extract from the documentation: void onMessage( const FIX41::NewOrderSingle& message, const FIX::SessionID& ) { FIX::ClOrdID clOrdID; message.get(clOrdID); // compile time error!! field not defined in FIX41 FIX::ClearingAccount clearingAccount; message.get(clearingAccount); } When using something like this: void FixApplication::onMessage( const FIX43::ExecutionReport& message, const FIX::SessionID& sessionID) { FIX::TradeRequestID toto; message.getField( toto ); } I don't get any warnings. I've checked the fix43 header file ExecutionReport.h and the field TradeRequestID is is not defined. Writing: FIX43::ExecutionReport::TradeRequestID toto; gives a compilor error: fixapplication.cpp(287) : error C2039: 'TradeRequestID' : is not a member of 'ExecutionReport' ../src/fix/inc/fix43/ExecutionReport.h(9) : see declaration of 'ExecutionReport' Does anyone have an idea why the compiler does not give any errors in the first case? Thanks Bjoern PS.: I'm using C++ under Windows. |