void AppClient::onStatusMsg( const StatusMsg& statusMsg, const OmmConsumerEvent& ) { if ( statusMsg.hasMsgKey() ) cout << endl << "Item Name: " << statusMsg.getName() << endl << "Service Name: " << statusMsg.getServiceName(); if ( statusMsg.hasState() ) cout << endl << "Item State: " << statusMsg.getState().toString() << endl; }
void AppClient::onStatusMsg( const StatusMsg& statusMsg, const OmmConsumerEvent& ommEvent ) { cout << "Received Status. Item Handle: " << ommEvent.getHandle() << " Closure: " << ommEvent.getClosure() << endl; if ( statusMsg.hasMsgKey() ) cout << endl << "Item Name: " << statusMsg.getName() << endl << "Service Name: " << statusMsg.getServiceName(); if ( statusMsg.hasState() ) cout << endl << "Item State: " << statusMsg.getState().toString() << endl; }
void AppClient::onStatusMsg( const StatusMsg& statusMsg, const OmmConsumerEvent& ommEvent ) { cout << "Handle: " << ommEvent.getHandle() << " Closure: " << ommEvent.getClosure() << endl; if ( statusMsg.hasMsgKey() ) cout << "Item Name: " << ( statusMsg.hasName() ? statusMsg.getName() : EmaString( "name not set" ) ) << endl << "Service Name: " << ( statusMsg.hasServiceName() ? statusMsg.getServiceName() : EmaString( "service name not set" ) ) << endl; if ( statusMsg.hasState() ) cout << endl << "Item State: " << statusMsg.getState().toString() << endl; }