If I subscribe to "IBM.N" for example via:
UInt64 IBMhandle = pConsumer->registerClient( ReqMsg().serviceName( "ELEKTRON_DD" ).name( "IBM.N"), *this );
Is there no way to tie the event back to the RIC name other than the handle?
For example:
void AppClient::onRefreshMsg( const RefreshMsg& refreshMsg, const OmmConsumerEvent& event)
{
if(event.getHandle() == IBMhandle) { cout << "I have an update for IBM!!!" << endl ; }
if (DataType::FieldListEnum == refreshMsg.getPayload().getDataType())
decode(refreshMsg.getPayload().getFieldList());
}
Is there no way to get the RIC name directly from the event?