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
ddb06987
Commit
ddb06987
authored
Jun 08, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in constructor, dbs-file wasn't loaded, and new function nextVolume
parent
a7bec694
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
wb/lib/wb/src/wb_merep.cpp
wb/lib/wb/src/wb_merep.cpp
+18
-1
wb/lib/wb/src/wb_merep.h
wb/lib/wb/src/wb_merep.h
+2
-1
No files found.
wb/lib/wb/src/wb_merep.cpp
View file @
ddb06987
/*
* Proview $Id: wb_merep.cpp,v 1.3
5 2006-05-29 10:04:56
claes Exp $
* Proview $Id: wb_merep.cpp,v 1.3
6 2006-06-08 13:08:33
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -92,6 +92,7 @@ wb_merep::wb_merep(const char *dirName, wb_erep *erep, wb_vrep *vrep) :
if
(
strcmp
(
dp
->
d_name
,
vname
)
==
0
)
{
try
{
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
erep
,
this
,
fileName
,
vp
->
name
,
vp
->
vid
,
vp
->
cid
);
vrep
->
load
();
addDbs
(
&
sts
,
(
wb_mvrep
*
)
vrep
);
char
buff
[
256
];
sprintf
(
buff
,
"Local class volume
\"
%s
\"
loaded from
\"
%s
\"
, in data base %s"
,
vp
->
name
,
fileName
,
dirName
);
...
...
@@ -802,3 +803,19 @@ void wb_merep::subClass( pwr_tCid supercid, pwr_tCid subcid, pwr_tCid *nextsubci
}
*
sts
=
LDH__NONEXTCLASS
;
}
wb_mvrep
*
wb_merep
::
nextVolume
(
pwr_tStatus
*
sts
,
pwr_tVid
vid
)
{
// Search in dbs
mvrep_iterator
it
=
m_mvrepdbs
.
find
(
vid
);
if
(
it
!=
m_mvrepdbs
.
end
())
{
it
++
;
if
(
it
!=
m_mvrepdbs
.
end
())
{
*
sts
=
LDH__SUCCESS
;
return
it
->
second
;
}
}
*
sts
=
LDH__NOSUCHVOL
;
return
0
;
}
wb/lib/wb/src/wb_merep.h
View file @
ddb06987
/*
* Proview $Id: wb_merep.h,v 1.2
2 2006-05-21 22:30:50 lw
Exp $
* Proview $Id: wb_merep.h,v 1.2
3 2006-06-08 13:08:40 claes
Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -97,6 +97,7 @@ public:
wb_adrep
*
adp
,
int
offset
);
tree_sTable
*
catt_tt
()
{
return
m_catt_tt
;}
void
subClass
(
pwr_tCid
supercid
,
pwr_tCid
subcid
,
pwr_tCid
*
nextsubcid
,
pwr_tStatus
*
sts
);
wb_mvrep
*
nextVolume
(
pwr_tStatus
*
sts
,
pwr_tVid
vid
);
};
#endif
...
...
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