Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
42d95f55
Commit
42d95f55
authored
Dec 06, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simulate method was'n iherited from superclass
parent
80e6a41f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
32 deletions
+37
-32
xtt/lib/xtt/src/xtt_c_object.cpp
xtt/lib/xtt/src/xtt_c_object.cpp
+37
-32
No files found.
xtt/lib/xtt/src/xtt_c_object.cpp
View file @
42d95f55
/*
* Proview $Id: xtt_c_object.cpp,v 1.1
3 2005-10-21 16:11:22
claes Exp $
* Proview $Id: xtt_c_object.cpp,v 1.1
4 2005-12-06 10:49:51
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1168,24 +1168,27 @@ static pwr_tStatus Simulate( xmenu_sMenuCall *ip)
pwr_tFileName
found_file
;
char
*
s
;
sts
=
gdh_GetAttrRefTid
(
objar
,
&
classid
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
gdh_ObjidToName
(
cdh_ClassIdToObjid
(
classid
),
classname
,
sizeof
(
classname
),
cdh_mName_object
);
if
(
EVEN
(
sts
))
return
sts
;
cdh_ToLower
(
classname
,
classname
);
for
(
sts
=
gdh_GetAttrRefTid
(
objar
,
&
classid
);
ODD
(
sts
)
;
sts
=
gdh_GetSuperClass
(
classid
,
&
classid
,
pwr_cNObjid
))
{
sts
=
gdh_ObjidToName
(
cdh_ClassIdToObjid
(
classid
),
classname
,
sizeof
(
classname
),
cdh_mName_object
);
if
(
EVEN
(
sts
))
return
sts
;
cdh_ToLower
(
classname
,
classname
);
if
(
classname
[
0
]
==
'$'
)
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
&
classname
[
1
]);
else
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
classname
);
sts
=
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_END
);
if
(
EVEN
(
sts
))
{
sprintf
(
fname
,
"$pwrp_exe/%ssim.pwg"
,
classname
);
if
(
classname
[
0
]
==
'$'
)
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
&
classname
[
1
]);
else
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
classname
);
sts
=
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_END
);
if
(
EVEN
(
sts
))
{
sprintf
(
fname
,
"$pwrp_exe/%ssim.pwg"
,
classname
);
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
(
EVEN
(
sts
))
return
sts
;
...
...
@@ -1259,27 +1262,29 @@ static pwr_tStatus SimulateFilter( xmenu_sMenuCall *ip)
sts
=
gdh_GetObjectInfo
(
name
,
(
void
*
)
&
simconnect
,
sizeof
(
simconnect
));
if
(
EVEN
(
sts
))
{
// Look for sim graph to main object
sts
=
gdh_GetAttrRefTid
(
objar
,
&
classid
);
if
(
EVEN
(
sts
))
return
XNAV__INVISIBLE
;
for
(
sts
=
gdh_GetAttrRefTid
(
objar
,
&
classid
);
ODD
(
sts
);
sts
=
gdh_GetSuperClass
(
classid
,
&
classid
,
pwr_cNObjid
))
{
sts
=
gdh_ObjidToName
(
cdh_ClassIdToObjid
(
classid
),
classname
,
sizeof
(
classname
),
cdh_mName_object
);
if
(
EVEN
(
sts
))
return
sts
;
cdh_ToLower
(
classname
,
classname
);
sts
=
gdh_ObjidToName
(
cdh_ClassIdToObjid
(
classid
),
classname
,
sizeof
(
classname
),
cdh_mName_object
);
if
(
EVEN
(
sts
))
return
sts
;
cdh_ToLower
(
classname
,
classname
);
if
(
classname
[
0
]
==
'$'
)
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
&
classname
[
1
]);
else
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
classname
);
sts
=
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_END
);
if
(
EVEN
(
sts
))
{
sprintf
(
fname
,
"$pwrp_exe/%ssim.pwg"
,
classname
);
if
(
classname
[
0
]
==
'$'
)
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
&
classname
[
1
]);
else
sprintf
(
fname
,
"$pwr_exe/pwr_c_%ssim.pwg"
,
classname
);
sts
=
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_END
);
if
(
EVEN
(
sts
))
{
sprintf
(
fname
,
"$pwrp_exe/%ssim.pwg"
,
classname
);
sts
=
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_INIT
);
dcli_search_file
(
fname
,
found_file
,
DCLI_DIR_SEARCH_END
);
}
if
(
ODD
(
sts
))
return
XNAV__SUCCESS
;
}
if
(
ODD
(
sts
))
return
XNAV__SUCCESS
;
return
XNAV__INVISIBLE
;
}
else
if
(
cdh_ObjidIsNull
(
simconnect
.
Objid
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment