gala_clients/DIS_group/src/GROUPswApp.cxx
// Intersect selected entries in the Known Groups list.
Intersect selected entries in the Known Groups list.
Intersect selected entries in the Known Groups list .
vbool GROUPswApp::intersectGroups(const symbolArr groups, symbolArr& members)
{
    Initialize(GROUPswApp::intersectGroups);
    int status = vFALSE;    
    if (groups.size() == 2) {
        groupHdrPtr group1 = NULL;
        groupHdrPtr group2 = NULL;
        symbolPtr groupSym;
        ForEachS(groupSym, groups) {
            if (group1 == NULL) 
                group1 = groupHdr::sym_to_groupHdr(groupSym);
            else if (group2 == NULL) 
                group2 = groupHdr::sym_to_groupHdr(groupSym);
        }
        if (group1 && group2) {
            status = intersectGroupMembers(group1, group2, members);
        }
    } else {
        dis_message(0, MSG_WARN, "Must have 2 groups selected.\n");
    }
    return(status);
}
vbool GROUPswApp :: intersectGroups ( const symbolArr groups , symbolArr & members ) { Initialize ( GROUPswApp :: intersectGroups ) ; int status = vFALSE ; if ( groups . size ( ) == 2 ) { groupHdrPtr group1 = NULL ; groupHdrPtr group2 = NULL ; symbolPtr groupSym ; ForEachS ( groupSym , groups ) { if ( group1 == NULL ) group1 = groupHdr :: sym_to_groupHdr ( groupSym ) ; else if ( group2 == NULL ) group2 = groupHdr :: sym_to_groupHdr ( groupSym ) ; } if ( group1 && group2 ) { status = intersectGroupMembers ( group1 , group2 , members ) ; } } else { dis_message ( 0 , MSG_WARN , " \n " ) ; } return ( status ) ; }
Intersect selected entries in the Known Groups list.
Intersect selected entries in the Known Groups list .
// Very pessimistic today.