gala_clients/DIS_group/src/GROUPswApp.cxx
// Delete selected entries in the Groups list.
Delete selected entries in the Groups list.
Delete selected entries in the Groups list .
vbool GROUPswApp::deleteGroups(const symbolArr groups)
{
    Initialize(GROUPswApp::deleteGroups);
    bool confirm = true;
    bool yes_to_all = false;
    symbolPtr groupSym;
    ForEachS(groupSym, groups) {
        groupHdrPtr group = groupHdr::sym_to_groupHdr(groupSym);
        if (group) {
             yes_to_all = group->delete_group(confirm, yes_to_all);
        } else {
            symbolPtr xrefSym = groupSym.get_xrefSymbol();
            symbolPtr fileSym;
            if (xrefSym.xrisnotnull() ) fileSym = xrefSym->get_def_file();
            Xref* xref = 0;
            if (fileSym.xrisnotnull() ) xref = fileSym->get_Xref();
            if (xref) xref->remove_module(fileSym.get_name() );
        }
    }
    return(vTRUE);
}
vbool GROUPswApp :: deleteGroups ( const symbolArr groups ) { Initialize ( GROUPswApp :: deleteGroups ) ; bool confirm = true ; bool yes_to_all = false ; symbolPtr groupSym ; ForEachS ( groupSym , groups ) { groupHdrPtr group = groupHdr :: sym_to_groupHdr ( groupSym ) ; if ( group ) { yes_to_all = group -> delete_group ( confirm , yes_to_all ) ; } else { symbolPtr xrefSym = groupSym . get_xrefSymbol ( ) ; symbolPtr fileSym ; if ( xrefSym . xrisnotnull ( ) ) fileSym = xrefSym -> get_def_file ( ) ; Xref * xref = 0 ; if ( fileSym . xrisnotnull ( ) ) xref = fileSym -> get_Xref ( ) ; if ( xref ) xref -> remove_module ( fileSym . get_name ( ) ) ; } } return ( vTRUE ) ; }
Delete selected entries in the Groups list.
Delete selected entries in the Groups list .
// Delete the group.