void AppClient::onUpdateMsg( const UpdateMsg& updateMsg, const OmmConsumerEvent& ) { cout << endl << "Item Name: " << ( updateMsg.hasName() ? updateMsg.getName() : EmaString( "<not set>" ) ) << endl << "Service Name: " << (updateMsg.hasServiceName() ? updateMsg.getServiceName() : EmaString( "<not set>" ) ); if ( DataType::MapEnum == updateMsg.getPayload().getDataType() ) decode( updateMsg.getPayload().getMap() ); }
void AppClient::onUpdateMsg( const UpdateMsg& updateMsg, const OmmConsumerEvent& ommEvent ) { cout << endl << "Handle: " << ommEvent.getHandle() << " Closure: " << ommEvent.getClosure() << endl; cout << endl << "Item Name: " << ( updateMsg.hasName() ? updateMsg.getName() : EmaString( "<not set>" ) ) << endl << "Service Name: " << (updateMsg.hasServiceName() ? updateMsg.getServiceName() : EmaString( "<not set>" ) ) << endl; decode( updateMsg ); }
void AppClient::onUpdateMsg( const UpdateMsg& updateMsg, const OmmConsumerEvent& ommEvent ) { cout << endl << "Item Name: " << ( updateMsg.hasName() ? updateMsg.getName() : EmaString( "<not set>" ) ) << endl << "Service Name: " << (updateMsg.hasServiceName() ? updateMsg.getServiceName() : EmaString( "<not set>" ) ); cout << endl << "Item Handle: " << ommEvent.getHandle() << endl << "Item Closure: " << ommEvent.getClosure() << endl; if ( DataType::FieldListEnum == updateMsg.getPayload().getDataType() ) decode( updateMsg.getPayload().getFieldList() ); }
void AppClient::onUpdateMsg( const UpdateMsg& updateMsg, const OmmConsumerEvent& ) { if ( updateMsg.hasName() ) cout << endl << "Item Name: " << updateMsg.getName(); if ( updateMsg.hasServiceName() ) cout << endl << "Service Name: " << updateMsg.getServiceName(); cout << endl; if ( DataType::FieldListEnum == updateMsg.getPayload().getDataType() ) decode( updateMsg.getPayload().getFieldList() ); }