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
74689aad
Commit
74689aad
authored
Mar 22, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge dyn command, substitution of string attribute with &() syntax
parent
749b84ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+34
-4
No files found.
xtt/lib/ge/src/ge_graph.cpp
View file @
74689aad
...
...
@@ -4522,9 +4522,10 @@ void Graph::get_command( char *in, char *out, GeDyn *dyn)
}
else
{
pwr_tAName
refname
;
pwr_sAttrRef
aref
;
pwr_tStatus
sts
;
char
*
start
,
*
end
;
pwr_tTid
atid
;
pwr_tUInt32
asize
;
start
=
s
;
strcpy
(
refname
,
s
+
2
);
...
...
@@ -4533,11 +4534,40 @@ void Graph::get_command( char *in, char *out, GeDyn *dyn)
*
s
=
0
;
end
=
start
+
strlen
(
refname
)
+
3
;
sts
=
gdh_GetAttributeCharacteristics
(
refname
,
&
atid
,
&
asize
,
0
,
0
);
if
(
EVEN
(
sts
))
return
;
switch
(
atid
)
{
case
pwr_eType_AttrRef
:
{
pwr_tAttrRef
aref
;
sts
=
gdh_GetObjectInfo
(
refname
,
&
aref
,
sizeof
(
aref
));
if
(
EVEN
(
sts
))
return
;
sts
=
gdh_AttrrefToName
(
&
aref
,
str
,
sizeof
(
str
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
return
;
break
;
}
case
pwr_eType_Objid
:
{
pwr_tOid
oid
;
sts
=
gdh_GetObjectInfo
(
refname
,
&
oid
,
sizeof
(
oid
));
if
(
EVEN
(
sts
))
return
;
sts
=
gdh_ObjidToName
(
oid
,
str
,
sizeof
(
str
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
return
;
break
;
}
case
pwr_eType_String
:
{
sts
=
gdh_GetObjectInfo
(
refname
,
str
,
sizeof
(
str
));
if
(
EVEN
(
sts
))
return
;
break
;
}
default:
return
;
}
strcat
(
str
,
end
);
strcpy
(
start
,
str
);
...
...
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