gala_clients/DIS_group/src/GROUPswApp.cxx
// Set the Unrelated groups for the selected source groups.
Set the Unrelated groups for the selected source groups.
Set the Unrelated groups for the selected source groups .
vbool GROUPswApp::setUnrelatedGroups(const symbolArr groups, symbolArr& unrelated)
{
    Initialize(GROUPswApp::setUnrelatedGroups);
    symbolPtr groupSym;
    ForEachS(groupSym, groups) {
        groupHdrPtr group = groupHdr::sym_to_groupHdr(groupSym);
        if (group) {
            symbolPtr unrelatedSym;
            ForEachS(unrelatedSym, unrelated) {
                    groupHdrPtr unrelated = groupHdr::sym_to_groupHdr(unrelatedSym);
                if (unrelated) {
                    group->make_unrelated(unrelated);
                }
            }
        } else {
            dis_message(0, MSG_ERROR, "Symbol '%s' isn't a groupHdr!!!\n",
                    groupSym.get_name() );
        }
    }
    return (vTRUE);
}
vbool GROUPswApp :: setUnrelatedGroups ( const symbolArr groups , symbolArr & unrelated ) { Initialize ( GROUPswApp :: setUnrelatedGroups ) ; symbolPtr groupSym ; ForEachS ( groupSym , groups ) { groupHdrPtr group = groupHdr :: sym_to_groupHdr ( groupSym ) ; if ( group ) { symbolPtr unrelatedSym ; ForEachS ( unrelatedSym , unrelated ) { groupHdrPtr unrelated = groupHdr :: sym_to_groupHdr ( unrelatedSym ) ; if ( unrelated ) { group -> make_unrelated ( unrelated ) ; } } } else { dis_message ( 0 , MSG_ERROR , " \n " , groupSym . get_name ( ) ) ; } } return ( vTRUE ) ; }
Set the Unrelated groups for the selected source groups.
Set the Unrelated groups for the selected source groups .
// Make the unrelated grous unrelated to each of the source groups. // Make each group in the unrelated array unrelated to this group. // Note - we allow unrelating the selected group as a safety net.