model_server/driver_aset/src/driver.cxx
// removes an aset object
// this method will be called from UI to
// remove any alphaset object (both header and tree)
removes an aset object
this method will be called from UI to
remove any alphaset object (both header and tree)
removes an aset object this method will be called from UI to remove any alphaset object ( both header and tree )
void driver::remove_object (commonTreePtr aset_obj)
{
    Initialize(driver::remove_object);
    start_transaction() {
	if (aset_obj && aset_obj->get_id() > 0)
	{
	    if(is_Hierarchical(aset_obj) 
	       )
		obj_delete(aset_obj);
	    else
	    {
		app * head = checked_cast(app,aset_obj->get_header());
		if(head){
		    if ( is_smtHeader(head) ){
			smtHeaderPtr h1 = checked_cast(smtHeader,head);
			appTreePtr ap_t = checked_cast(appTree, aset_obj);
			h1->suspend_parsing();
			enable_reparse_buttons( h1, 1 );
			obj_insert(h1, REMOVE, ap_t, 0, 0, 0);
		    }else
			obj_remove(head, checked_cast(appTree, aset_obj));
		}else
		    obj_delete(aset_obj);
	    }
	}
    } end_transaction ();
}
void driver :: remove_object ( commonTreePtr aset_obj ) { Initialize ( driver :: remove_object ) ; start_transaction ( ) { if ( aset_obj && aset_obj -> get_id ( ) > 0 ) { if ( is_Hierarchical ( aset_obj ) ) obj_delete ( aset_obj ) ; else { app * head = checked_cast ( app , aset_obj -> get_header ( ) ) ; if ( head ) { if ( is_smtHeader ( head ) ) { smtHeaderPtr h1 = checked_cast ( smtHeader , head ) ; appTreePtr ap_t = checked_cast ( appTree , aset_obj ) ; h1 -> suspend_parsing ( ) ; enable_reparse_buttons ( h1 , 1 ) ; obj_insert ( h1 , REMOVE , ap_t , 0 , 0 , 0 ) ; } else obj_remove ( head , checked_cast ( appTree , aset_obj ) ) ; } else obj_delete ( aset_obj ) ; } } } end_transaction ( ) ; }
removes an aset object
this method will be called from UI to
remove any alphaset object (both header and tree)
removes an aset object this method will be called from UI to remove any alphaset object ( both header and tree )
/*   || is_SoftAssoc(aset_obj) || is_SoftId(aset_obj) */