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
cf893d67
Commit
cf893d67
authored
Oct 18, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New type DataRef and loop index bugfix
parent
18fb0d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
wb/lib/wb/src/wb_vrepmem.cpp
wb/lib/wb/src/wb_vrepmem.cpp
+26
-3
No files found.
wb/lib/wb/src/wb_vrepmem.cpp
View file @
cf893d67
/*
* Proview $Id: wb_vrepmem.cpp,v 1.
19 2005-10-07 05:57:29
claes Exp $
* Proview $Id: wb_vrepmem.cpp,v 1.
20 2005-10-18 05:13:20
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1236,6 +1236,18 @@ bool wb_vrepmem::updateSubClass( wb_adrep *subattr, char *body, bool keepref)
}
break
;
}
case
pwr_eType_DataRef
:
{
pwr_tDataRef
*
drp
=
(
pwr_tDataRef
*
)(
body
+
i
*
subattr
->
size
()
/
subattr_elements
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
drp
->
Aref
.
Objid
.
vid
==
m_source_vid
&&
findObject
(
drp
->
Aref
.
Objid
.
oix
))
drp
->
Aref
.
Objid
.
vid
=
m_vid
;
else
if
(
!
keepref
)
drp
->
Aref
.
Objid
=
pwr_cNOid
;
drp
++
;
}
break
;
}
default:
;
}
...
...
@@ -1276,7 +1288,7 @@ bool wb_vrepmem::updateObject( wb_orep *o, bool keepref)
switch
(
adrep
->
type
())
{
case
pwr_eType_Objid
:
{
pwr_tOid
*
oidp
=
(
pwr_tOid
*
)(
body
+
adrep
->
offset
());
for
(
i
=
0
;
i
<
elements
;
i
++
)
{
for
(
i
nt
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
oidp
->
vid
==
m_source_vid
&&
findObject
(
oidp
->
oix
))
oidp
->
vid
=
m_vid
;
else
if
(
!
keepref
)
...
...
@@ -1287,7 +1299,7 @@ bool wb_vrepmem::updateObject( wb_orep *o, bool keepref)
}
case
pwr_eType_AttrRef
:
{
pwr_sAttrRef
*
arp
=
(
pwr_sAttrRef
*
)(
body
+
adrep
->
offset
());
for
(
i
=
0
;
i
<
elements
;
i
++
)
{
for
(
i
nt
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
arp
->
Objid
.
vid
==
m_source_vid
&&
findObject
(
arp
->
Objid
.
oix
))
arp
->
Objid
.
vid
=
m_vid
;
else
if
(
!
keepref
)
...
...
@@ -1296,6 +1308,17 @@ bool wb_vrepmem::updateObject( wb_orep *o, bool keepref)
}
break
;
}
case
pwr_eType_DataRef
:
{
pwr_tDataRef
*
drp
=
(
pwr_tDataRef
*
)(
body
+
adrep
->
offset
());
for
(
int
j
=
0
;
j
<
elements
;
j
++
)
{
if
(
drp
->
Aref
.
Objid
.
vid
==
m_source_vid
&&
findObject
(
drp
->
Aref
.
Objid
.
oix
))
drp
->
Aref
.
Objid
.
vid
=
m_vid
;
else
if
(
!
keepref
)
drp
->
Aref
.
Objid
=
pwr_cNOid
;
drp
++
;
}
break
;
}
default:
;
}
...
...
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