gala_clients/DIS_group/src/CreateGroup.cxx
// Import the selected Import Groups.
Import the selected Import Groups.
Import the selected Import Groups .
vbool CreateGroup::importRTLGroups(int importsId)
{
    Initialize(CreateGroup::selectImportGroupAt);
    RTListServer* importsRTL = RTListServer::find(importsId);
    if (importsRTL) {
        symbolArr groupSyms;
        importsRTL->getSelArr(groupSyms);
        symbolArr newGroupSyms(importsRTL->getArr() );
        importsRTL->clear();
        symbolPtr groupSym;
        ForEachS(groupSym, groupSyms) {
	    genString phys_name;
	    projModulePtr pm = checked_cast(projModule, groupSym);
	    if (pm) {
		pm->get_phys_filename(phys_name);
		importRTLGroup((char *)phys_name);
            }
            newGroupSyms.remove(groupSym);
        }
        importsRTL->insert(newGroupSyms);
    }
    return (vTRUE);
}
vbool CreateGroup :: importRTLGroups ( int importsId ) { Initialize ( CreateGroup :: selectImportGroupAt ) ; RTListServer * importsRTL = RTListServer :: find ( importsId ) ; if ( importsRTL ) { symbolArr groupSyms ; importsRTL -> getSelArr ( groupSyms ) ; symbolArr newGroupSyms ( importsRTL -> getArr ( ) ) ; importsRTL -> clear ( ) ; symbolPtr groupSym ; ForEachS ( groupSym , groupSyms ) { genString phys_name ; projModulePtr pm = checked_cast ( projModule , groupSym ) ; if ( pm ) { pm -> get_phys_filename ( phys_name ) ; importRTLGroup ( ( char * ) phys_name ) ; } newGroupSyms . remove ( groupSym ) ; } importsRTL -> insert ( newGroupSyms ) ; } return ( vTRUE ) ; }
Import the selected Import Groups.
Import the selected Import Groups .
// Get the array of selected groups. // Save and clear the Known-Groups while importing. // Remove the entry from the list. // Add the group not imported back into the Imports RTL. // Note - This may remove items which we were unable to import.