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
0f489041
Commit
0f489041
authored
Feb 06, 2003
by
lw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
107203ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+21
-13
No files found.
wb/lib/wb/src/wb_dbs.cpp
View file @
0f489041
...
...
@@ -52,14 +52,14 @@ wb_dbs::wb_dbs(wb_vrep *v)
sprintf
(
m_name
,
dbs_cNameVolume
,
dbs_cDirectory
,
m_v
->
name
());
dcli_translate_filename
(
m_name
,
m_name
);
m_oix_th
=
tree_CreateTable
(
&
sts
,
sizeof
(
pwr_tOi
x
),
offsetof
(
sOentry
,
o
.
oid
.
oix
),
sizeof
(
sOentry
),
1000
,
tree_Comp_oi
x
);
m_oix_th
=
tree_CreateTable
(
&
sts
,
sizeof
(
pwr_tOi
d
),
offsetof
(
sOentry
,
o
.
oid
),
sizeof
(
sOentry
),
1000
,
tree_Comp_oi
d
);
m_name_th
=
tree_CreateTable
(
&
sts
,
sizeof
(
dbs_sName
),
offsetof
(
sNentry
,
n
.
poix
),
sizeof
(
sNentry
),
1000
,
comp_dbs_name
);
m_class_th
=
tree_CreateTable
(
&
sts
,
sizeof
(
pwr_t
O
id
),
offsetof
(
sCentry
,
c
),
sizeof
(
sCentry
),
1000
,
tree_Comp_
o
id
);
m_class_th
=
tree_CreateTable
(
&
sts
,
sizeof
(
pwr_t
C
id
),
offsetof
(
sCentry
,
c
),
sizeof
(
sCentry
),
1000
,
tree_Comp_
c
id
);
}
wb_dbs
::~
wb_dbs
()
...
...
@@ -169,7 +169,10 @@ wb_dbs::installObject(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid boid,
sOentry
*
oep
;
pwr_tStatus
sts
;
oep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
oid
.
oix
);
if
(
cdh_ObjidIsNull
(
oid
))
printf
(
"Error: object is null!
\n
"
);
oep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
oid
);
if
(
sts
==
TREE__INSERTED
)
{
}
else
{
printf
(
"Error: object is already inserted!
\n
"
);
...
...
@@ -183,11 +186,16 @@ wb_dbs::installObject(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid, pwr_tOid boid,
oep
->
flags
.
b
.
exist
=
1
;
// Link objects to its relatives
oep
->
poep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
poid
.
oix
);
oep
->
boep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
boid
.
oix
);
oep
->
aoep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
aoid
.
oix
);
oep
->
foep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
foid
.
oix
);
oep
->
loep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
loid
.
oix
);
if
(
cdh_ObjidIsNotNull
(
poid
))
oep
->
poep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
poid
);
if
(
cdh_ObjidIsNotNull
(
boid
))
oep
->
boep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
boid
);
if
(
cdh_ObjidIsNotNull
(
aoid
))
oep
->
aoep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
aoid
);
if
(
cdh_ObjidIsNotNull
(
foid
))
oep
->
foep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
foid
);
if
(
cdh_ObjidIsNotNull
(
loid
))
oep
->
loep
=
(
sOentry
*
)
tree_Insert
(
&
sts
,
m_oix_th
,
&
loid
);
m_volume
.
cardinality
++
;
...
...
@@ -493,7 +501,7 @@ wb_dbs::writeSectVolref()
memset(&ce, 0, sizeof(ce));
ce.c.cid = 0;
cep = (sCentry*)tree_FindSuccessor(&sts, m_class_th, &ce);
cep = (sCentry*)tree_FindSuccessor(&sts, m_class_th, &ce
.c.cid
);
while (cep) {
cdh_uTypeId cid;
cdh_uVolumeId vid;
...
...
@@ -625,7 +633,7 @@ wb_dbs::installDbody(pwr_tOid oid, void *body)
memset
(
b
,
0
,
sizeof
(
b
));
oep
=
(
sOentry
*
)
tree_Find
(
&
sts
,
m_oix_th
,
&
oid
.
oix
);
oep
=
(
sOentry
*
)
tree_Find
(
&
sts
,
m_oix_th
,
&
oid
);
if
(
EVEN
(
sts
))
{
}
...
...
@@ -671,7 +679,7 @@ wb_dbs::installRbody(pwr_tOid oid, void *body)
memset
(
b
,
0
,
sizeof
(
b
));
oep
=
(
sOentry
*
)
tree_Find
(
&
sts
,
m_oix_th
,
&
oid
.
oix
);
oep
=
(
sOentry
*
)
tree_Find
(
&
sts
,
m_oix_th
,
&
oid
);
if
(
EVEN
(
sts
))
{
}
...
...
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