Commit 82438c22 authored by Claes Sjofors's avatar Claes Sjofors

Xtt open graph, base classgraphs first search for on , then on...

Xtt open graph, base classgraphs first search for on , then on /data0/x5-5-0/rls/os_linux/hw_x86/xtt/exe
parent 4d409e6b
......@@ -10477,6 +10477,9 @@ pwr_tStatus XNav::get_instance_classgraph( char *instance_str, pwr_tFileName fil
pwr_tFileName found_file, fname, file_str;
pwr_tAName aname;
pwr_tEnum graph_conf;
int i;
int is_baseclass = 0;
int found = 0;
sts = gdh_NameToAttrref( pwr_cNObjid, instance_str, &aref);
if ( EVEN(sts)) return sts;
......@@ -10492,6 +10495,7 @@ pwr_tStatus XNav::get_instance_classgraph( char *instance_str, pwr_tFileName fil
if ( cdh_CidToVid(cid) < cdh_cUserClassVolMin ||
(cdh_CidToVid(cid) >= cdh_cManufactClassVolMin &&
cdh_CidToVid(cid) <= cdh_cManufactClassVolMax)) {
is_baseclass = 1;
if ( cname[0] == '$')
sprintf( file_str, "pwr_c_%s", &cname[1]);
else
......@@ -10500,18 +10504,16 @@ pwr_tStatus XNav::get_instance_classgraph( char *instance_str, pwr_tFileName fil
else
strcpy( file_str, cname);
// Get base class graphs on $pwr_exe
// Get base class graphs on $pwrp_exe or $pwr_exe
for ( i = 0; i < 2; i++) {
cdh_ToLower( fname, file_str);
if ( (cdh_NoCaseStrncmp( fname, "pwr_c_", 6) == 0 ||
cdh_NoCaseStrncmp( fname, "pwr_c_", 6) == 0)) {
if ( is_baseclass && i == 1) {
strcpy( fname, "$pwr_exe/");
strcat( fname, file_str);
strcpy( file_str, fname);
}
else {
strcpy( fname, "$pwrp_exe/");
strcat( fname, file_str);
strcpy( file_str, fname);
}
// Add any GraphConfiguration to filename
......@@ -10524,13 +10526,20 @@ pwr_tStatus XNav::get_instance_classgraph( char *instance_str, pwr_tFileName fil
sprintf( gc, "%d", graph_conf);
strcat( fname, gc);
}
strcpy( file_str, fname);
}
strcat( fname, ".pwg");
sts = dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_INIT);
dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_END);
if ( ODD(sts)) break;
if ( ODD(sts)) {
found = 1;
break;
}
if ( !is_baseclass)
break;
}
if ( found)
break;
sts = gdh_GetSuperClass( cid, &cid, aref.Objid);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment