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