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
47007d53
Commit
47007d53
authored
Feb 17, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change in n.attributesAll
parent
fe2f4239
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
9 deletions
+22
-9
wb/lib/wb/src/wb_attribute.cpp
wb/lib/wb/src/wb_attribute.cpp
+4
-4
wb/lib/wb/src/wb_ldh.cpp
wb/lib/wb/src/wb_ldh.cpp
+9
-1
wb/lib/wb/src/wb_merep.cpp
wb/lib/wb/src/wb_merep.cpp
+2
-2
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+7
-2
No files found.
wb/lib/wb/src/wb_attribute.cpp
View file @
47007d53
...
...
@@ -145,12 +145,12 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char *bname, co
if
(
bname
)
{
bd
=
cd
->
bdrep
(
&
m_sts
,
bname
);
if
(
oddSts
())
{
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
());
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
True
());
m_bix
=
bd
->
bix
();
}
}
else
{
m_adrep
=
cd
->
adrep
(
&
m_sts
,
n
.
attributesAll
());
m_adrep
=
cd
->
adrep
(
&
m_sts
,
n
.
attributesAll
True
());
m_bix
=
pwr_eBix_rt
;
}
if
(
oddSts
())
{
...
...
@@ -237,13 +237,13 @@ wb_attribute::wb_attribute(const wb_attribute& pa, int idx, const char *aname) :
if
(
evenSts
())
{
delete
cd
;
return
;}
}
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
());
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
True
());
if
(
evenSts
())
{
// Try devbody
bd
=
cd
->
bdrep
(
&
m_sts
,
pwr_eBix_dev
);
if
(
evenSts
())
{
delete
cd
;
return
;}
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
());
m_adrep
=
bd
->
adrep
(
&
m_sts
,
n
.
attributesAll
True
());
if
(
evenSts
())
{
delete
cd
;
delete
bd
;
return
;}
}
m_adrep
->
ref
();
...
...
wb/lib/wb/src/wb_ldh.cpp
View file @
47007d53
...
...
@@ -801,6 +801,14 @@ ldh_GetAttrRefTid(ldh_tSession session, pwr_sAttrRef *arp, pwr_tTid *tid)
{
wb_session
*
sp
=
(
wb_session
*
)
session
;
if
(
arp
->
Flags
.
b
.
Object
)
{
wb_object
o
=
sp
->
object
(
arp
->
Objid
);
if
(
!
o
)
return
o
.
sts
();
*
tid
=
o
.
cid
();
return
o
.
sts
();
}
wb_attribute
a
=
sp
->
attribute
(
arp
);
if
(
!
a
)
return
a
.
sts
();
*
tid
=
a
.
tid
();
...
...
@@ -1346,7 +1354,7 @@ ldh_AttrRefToName(ldh_tSession session, pwr_sAttrRef *arp, int nametype, char **
wb_name
n
=
a
.
longName
();
strcpy
(
str
,
a
.
name
());
strcat
(
str
,
"."
);
strcat
(
str
,
n
.
attribute
());
strcat
(
str
,
n
.
attribute
sAll
());
*
aname
=
str
;
*
size
=
strlen
(
str
);
break
;
...
...
wb/lib/wb/src/wb_merep.cpp
View file @
47007d53
...
...
@@ -261,7 +261,7 @@ int wb_merep::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, siz
wb_bdrep
*
bd
=
0
;
if
(
bix
==
0
)
{
// Search in all bodies
adrep
=
cd
->
adrep
(
&
sts
,
attr
->
attributesAll
(
level
));
adrep
=
cd
->
adrep
(
&
sts
,
attr
->
attributesAll
True
(
level
));
if
(
EVEN
(
sts
))
{
delete
cd
;
return
0
;}
}
else
{
...
...
@@ -269,7 +269,7 @@ int wb_merep::getAttrInfoRec( wb_attrname *attr, pwr_eBix bix, pwr_tCid cid, siz
bd
=
cd
->
bdrep
(
&
sts
,
bix
);
if
(
EVEN
(
sts
))
{
delete
cd
;
return
0
;}
adrep
=
bd
->
adrep
(
&
sts
,
attr
->
attributesAll
(
level
));
adrep
=
bd
->
adrep
(
&
sts
,
attr
->
attributesAll
True
(
level
));
if
(
EVEN
(
sts
))
{
delete
cd
;
delete
bd
;
return
0
;}
}
...
...
wb/lib/wb/src/wb_vrepdb.cpp
View file @
47007d53
...
...
@@ -11,11 +11,14 @@
#include "wb_ldh.h"
#include "wb_merep.h"
#include "wb_attribute.h"
#include "wb_dblock.h"
void
wb_vrepdb
::
unref
()
{
if
(
--
m_nRef
==
0
)
if
(
--
m_nRef
==
0
)
{
wb_dblock
::
dbunlock
(
m_fileName
);
delete
this
;
}
}
wb_vrep
*
wb_vrepdb
::
ref
()
...
...
@@ -29,6 +32,7 @@ wb_vrepdb::wb_vrepdb(wb_erep *erep, const char *fileName) :
m_erep
(
erep
),
m_nRef
(
0
),
m_ohead
(),
m_oid_th
(
0
)
{
strcpy
(
m_fileName
,
fileName
);
wb_dblock
::
dblock
(
m_fileName
);
m_db
=
new
wb_db
();
m_db
->
open
(
fileName
);
...
...
@@ -44,6 +48,7 @@ wb_vrepdb::wb_vrepdb(wb_erep *erep, pwr_tVid vid, pwr_tCid cid, const char *volu
m_erep
(
erep
),
m_nRef
(
0
),
m_ohead
(),
m_oid_th
(
0
)
{
strcpy
(
m_fileName
,
fileName
);
wb_dblock
::
dblock
(
m_fileName
);
m_db
=
new
wb_db
();
m_db
->
create
(
vid
,
cid
,
volumeName
,
fileName
);
...
...
@@ -1277,7 +1282,7 @@ bool wb_vrepdb::exportTreeHelper(wb_treeimport &i, pwr_tOid oid, bool isRoot)
printf
(
"wb_vrepdbs::exportTreeObject, db.get: %d
\n
"
,
rc
);
}
pwr_mClassDef
flags
;
flags
.
m
=
0
;
// Fix !!!
pwr_mClassDef
flags
=
m_ohead
.
flags
();
//
flags.m = 0; // Fix !!!
if
(
isRoot
)
{
i
.
importTreeObject
(
m_merep
,
m_ohead
.
oid
(),
m_ohead
.
cid
(),
pwr_cNOid
,
pwr_cNOid
,
m_ohead
.
name
(),
flags
,
m_ohead
.
rbSize
(),
m_ohead
.
dbSize
(),
rbody
,
dbody
);
...
...
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