gala_clients/DIS_group/src/GROUPswApp.cxx
// Check the symbol array for projects which contain other projects.
// Also provided for a small fee:
//	If a DD_SUBSYSTEM is found, warn the user that it will be ignored.
Check the symbol array for projects which contain other projects.
Also provided for a small fee:
If a DD_SUBSYSTEM is found, warn the user that it will be ignored.
Check the symbol array for projects which contain other projects . Also provided for a small fee : If a DD_SUBSYSTEM is found warn the user that it will be ignored .
vbool GROUPswApp::checkForNestedProjects(const symbolArr& members)
{
        vbool foundNested = vFALSE;
	symbolPtr member;
	ForEachS(member, members) {
		if (!foundNested && (member.get_kind() == DD_PROJECT) ) {
			projNodePtr proj = projNode::find_project(member.get_name());
			if (proj) {
				proj->refresh();
				symbolArr& proj_contents = proj->rtl_contents();
				symbolPtr sym;
				ForEachS(sym, proj_contents) {
					if (sym.relationalp())
						RelationalPtr(sym)->construct_symbolPtr(sym);
					if (sym.isnotnull() ) {
						if (sym.get_kind() == DD_PROJECT)
							foundNested = true;
					}
				}
			}
		} else if (member.get_kind() == DD_SUBSYSTEM) {
			dis_message(NULL, MSG_WARN, 
				"Unable to add subsystem '%s' as a member.",
				member.get_name() );
		}
	}
	return(foundNested);
}
vbool GROUPswApp :: checkForNestedProjects ( const symbolArr & members ) { vbool foundNested = vFALSE ; symbolPtr member ; ForEachS ( member , members ) { if ( ! foundNested && ( member . get_kind ( ) == DD_PROJECT ) ) { projNodePtr proj = projNode :: find_project ( member . get_name ( ) ) ; if ( proj ) { proj -> refresh ( ) ; symbolArr & proj_contents = proj -> rtl_contents ( ) ; symbolPtr sym ; ForEachS ( sym , proj_contents ) { if ( sym . relationalp ( ) ) RelationalPtr ( sym ) -> construct_symbolPtr ( sym ) ; if ( sym . isnotnull ( ) ) { if ( sym . get_kind ( ) == DD_PROJECT ) foundNested = true ; } } } } else if ( member . get_kind ( ) == DD_SUBSYSTEM ) { dis_message ( NULL , MSG_WARN , " " , member . get_name ( ) ) ; } } return ( foundNested ) ; }
Check the symbol array for projects which contain other projects.
Check the symbol array for projects which contain other projects .
// Found a project, now see if it contains a project.