gala_clients/DIS_group/src/GROUPswApp.cxx
// Show the Server groups for the selected source groups.
Show the Server groups for the selected source groups.
Show the Server groups for the selected source groups .
vbool GROUPswApp::showServerGroups(const symbolArr sources, symbolArr& results)
{
    Initialize(GROUPswApp::showServerGroups);
    symbolSet serverSet;
    serverSet.insert(results);
    symbolPtr groupSym;
    ForEachS(groupSym, sources) {
        groupHdrPtr group = groupHdr::sym_to_groupHdr(groupSym);
        if (group) {
            symbolArr serverSyms;
            group->get_servers(serverSyms);
            symbolPtr serverSym;
            ForEachS(serverSym, serverSyms) {
                if (!serverSet.includes(serverSym) )
                    serverSet.insert(serverSym);
            }
        } else {
            dis_message(0, MSG_ERROR, "Symbol '%s' isn't a groupHdr!!!\n",
                    groupSym.get_name() );
        }
    }
    results = serverSet;
    return (vTRUE);
}
vbool GROUPswApp :: showServerGroups ( const symbolArr sources , symbolArr & results ) { Initialize ( GROUPswApp :: showServerGroups ) ; symbolSet serverSet ; serverSet . insert ( results ) ; symbolPtr groupSym ; ForEachS ( groupSym , sources ) { groupHdrPtr group = groupHdr :: sym_to_groupHdr ( groupSym ) ; if ( group ) { symbolArr serverSyms ; group -> get_servers ( serverSyms ) ; symbolPtr serverSym ; ForEachS ( serverSym , serverSyms ) { if ( ! serverSet . includes ( serverSym ) ) serverSet . insert ( serverSym ) ; } } else { dis_message ( 0 , MSG_ERROR , " \n " , groupSym . get_name ( ) ) ; } } results = serverSet ; return ( vTRUE ) ; }
Show the Server groups for the selected source groups.
Show the Server groups for the selected source groups .
// Get the list of Server groups. // Get the servers for this group. // Add the servers to the target Set, if not already there.