model_server/project_pdf/src/path.h.cxx
// If any module exists on the same level or above this project node of "name"
If any module exists on the same level or above this project node of "name"
If any module exists on the same level or above this project node of " name "
bool check_proj_name_for_build(projNode *pn, char const *proj_name)
{
    Initialize(check_proj_name_for_build);
    while(pn)
        {
            projNode *par = pn->find_parent();
            if (!par)
                break;
            pn = par;
        }
    genString phy;
    pn->ln_to_fn_imp(proj_name, phy, DIR_TYPE, 0, 1);
    if (!phy.length())
        return false;
    pn = projNode::find_project(proj_name);
    Assert(pn);
    projMap *pm =  get_projmap_for_projnode(pn);
    Assert(pm);
    while (pm)
        {
            if (pm->contain_leaf())
                return false;
            pm = pm->get_parent_project();
        }
    return true;
}
bool check_proj_name_for_build ( projNode * pn , char const * proj_name ) { Initialize ( check_proj_name_for_build ) ; while ( pn ) { projNode * par = pn -> find_parent ( ) ; if ( ! par ) break ; pn = par ; } genString phy ; pn -> ln_to_fn_imp ( proj_name , phy , DIR_TYPE , 0 , 1 ) ; if ( ! phy . length ( ) ) return false ; pn = projNode :: find_project ( proj_name ) ; Assert ( pn ) ; projMap * pm = get_projmap_for_projnode ( pn ) ; Assert ( pm ) ; while ( pm ) { if ( pm -> contain_leaf ( ) ) return false ; pm = pm -> get_parent_project ( ) ; } return true ; }
If any module exists on the same level or above this project node of "name"
If any module exists on the same level or above this project node of " name "