model_server/driver_aset/src/driver.cxx
//------------------------------------------
// find_dialog_for_app
//
// Find the first dialog for the specified app
//------------------------------------------
find_dialog_for_app
Find the first dialog for the specified app
find_dialog_for_app Find the first dialog for the specified app
dialogPtr driver::find_dialog_for_app( appPtr app )
{
    Initialize(driver::find_dialog_for_app);
    dialogPtr found_dialog = NULL;
    Obj*      dlg;
    if (app== NULL)
	return NULL;
    ForEach (dlg, dialogs) {
	if ( checked_cast(dialog,dlg)->contains_app (app) ) {
	    found_dialog = checked_cast(dialog,dlg);
	    break;
	}
    }
    return found_dialog;
}
dialogPtr driver :: find_dialog_for_app ( appPtr app ) { Initialize ( driver :: find_dialog_for_app ) ; dialogPtr found_dialog = NULL ; Obj * dlg ; if ( app == NULL ) return NULL ; ForEach ( dlg , dialogs ) { if ( checked_cast ( dialog , dlg ) -> contains_app ( app ) ) { found_dialog = checked_cast ( dialog , dlg ) ; break ; } } return found_dialog ; }
find_dialog_for_app
Find the first dialog for the specified app
find_dialog_for_app Find the first dialog for the specified app