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
fb6deb92
Commit
fb6deb92
authored
Feb 11, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
c02f126a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
18 deletions
+28
-18
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+23
-10
wb/lib/wb/src/wb_volume.cpp
wb/lib/wb/src/wb_volume.cpp
+2
-4
wb/lib/wb/src/wb_volume.h
wb/lib/wb/src/wb_volume.h
+1
-2
wb/lib/wb/src/wb_vrepdbs.cpp
wb/lib/wb/src/wb_vrepdbs.cpp
+2
-2
No files found.
wb/lib/wb/src/wb_erep.cpp
View file @
fb6deb92
...
...
@@ -5,6 +5,7 @@
#include "wb_erep.h"
#include "wb_merep.h"
#include "wb_vrepwbl.h" // Should be wb_vrepdbs.h ...
#include "wb_vrepdbs.h"
#include "wb_cdrep.h"
#include "wb_orep.h"
#include "wb_tdrep.h"
...
...
@@ -296,9 +297,15 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status)
cdh_StringToVolumeId
(
vol_array
[
1
],
&
vid
);
cout
<<
"Loading volume: "
<<
vname
<<
" "
<<
vid
<<
endl
;
wb_vrepwbl
*
vrep
=
new
wb_vrepwbl
(
this
,
vid
);
vrep
->
name
(
vol_array
[
0
]);
addDbs
(
&
sts
,
vrep
);
try
{
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
this
,
vname
);
vrep
->
load
();
// vrep->name( vol_array[0]);
addDbs
(
&
sts
,
vrep
);
}
catch
(
wb_error
&
e
)
{
cout
<<
"** Unable to open volume "
<<
vname
<<
" "
<<
e
.
what
()
<<
endl
;
}
}
fpm
.
close
();
}
...
...
@@ -315,7 +322,7 @@ void wb_erep::loadMeta( pwr_tStatus *status)
int
i
;
pwr_tVid
vid
;
pwr_tStatus
sts
;
wb_vrep
wbl
*
vrep
;
wb_vrep
dbs
*
vrep
;
int
vol_cnt
=
0
;
strcpy
(
fname
,
load_cNameVolumeList
);
...
...
@@ -370,9 +377,15 @@ void wb_erep::loadMeta( pwr_tStatus *status)
if
(
ODD
(
sts
))
{
cout
<<
"Found: "
<<
found_file
<<
endl
;
// Load...
vrep
=
new
wb_vrepwbl
(
this
,
vid
);
vrep
->
name
(
vol_array
[
0
]);
addDbs
(
&
sts
,
vrep
);
try
{
vrep
=
new
wb_vrepdbs
(
this
,
vname
);
vrep
->
load
();
// vrep->name( vol_array[0]);
addDbs
(
&
sts
,
vrep
);
}
catch
(
wb_error
&
e
)
{
cout
<<
"** Unable to open volume "
<<
vname
<<
" "
<<
e
.
what
()
<<
endl
;
}
break
;
}
}
...
...
@@ -385,9 +398,9 @@ void wb_erep::loadMeta( pwr_tStatus *status)
strcat
(
vname
,
".dbs"
);
dcli_translate_filename
(
vname
,
vname
);
vrep
=
new
wb_vrepwbl
(
this
,
vid
);
vrep
->
name
(
vol_array
[
0
]);
addDbs
(
&
sts
,
vrep
);
wb_vrepwbl
*
vrepdb
=
new
wb_vrepwbl
(
this
,
vid
);
// Should be wb_vrepdb...
vrep
db
->
name
(
vol_array
[
0
]);
addDbs
(
&
sts
,
vrep
db
);
vol_cnt
++
;
}
}
...
...
wb/lib/wb/src/wb_volume.cpp
View file @
fb6deb92
#include "wb_volume.h"
#include "wb_merep.h"
wb_volume
::
wb_volume
()
:
wb_status
(
LDH__NOSUCHVOL
),
m_vrep
(
0
)
,
m_vid
(
0
)
wb_volume
::
wb_volume
()
:
wb_status
(
LDH__NOSUCHVOL
),
m_vrep
(
0
)
{
}
...
...
@@ -10,7 +10,6 @@ wb_volume::wb_volume(wb_vrep *vrep) : wb_status(LDH__SUCCESS), m_vrep(vrep)
if
(
!
m_vrep
)
m_sts
=
LDH__NOSUCHVOL
;
else
{
m_vid
=
m_vrep
->
vid
();
m_vrep
->
ref
();
}
}
...
...
@@ -21,7 +20,7 @@ wb_volume::~wb_volume()
m_vrep
->
unref
();
}
wb_volume
::
wb_volume
(
const
wb_volume
&
v
)
:
wb_status
(
v
.
sts
()),
m_vrep
(
v
.
m_vrep
)
,
m_vid
(
v
.
vid
())
wb_volume
::
wb_volume
(
const
wb_volume
&
v
)
:
wb_status
(
v
.
sts
()),
m_vrep
(
v
.
m_vrep
)
{
if
(
m_vrep
)
m_vrep
->
ref
();
...
...
@@ -37,7 +36,6 @@ wb_volume& wb_volume::operator=(const wb_volume& x)
m_vrep
->
unref
();
m_vrep
=
x
.
m_vrep
;
m_sts
=
x
.
sts
();
m_vid
=
x
.
vid
();
return
*
this
;
}
...
...
wb/lib/wb/src/wb_volume.h
View file @
fb6deb92
...
...
@@ -22,7 +22,6 @@ class wb_volume : public wb_status
{
protected:
wb_vrep
*
m_vrep
;
pwr_tVid
m_vid
;
public:
...
...
@@ -41,7 +40,7 @@ public:
wb_env
env
();
pwr_tVid
vid
()
const
{
return
m_v
id
;}
pwr_tVid
vid
()
const
{
return
m_v
rep
->
vid
()
;}
pwr_tCid
cid
()
const
{
return
m_vrep
->
cid
();}
char
*
name
()
const
{
return
m_vrep
->
name
();}
...
...
wb/lib/wb/src/wb_vrepdbs.cpp
View file @
fb6deb92
...
...
@@ -284,13 +284,13 @@ wb_vrepdbs::cid() const
pwr_tVid
wb_vrepdbs
::
vid
()
const
{
return
0
;
return
m_vid
;
}
wb_erep
*
wb_vrepdbs
::
erep
()
const
{
return
0
;
return
m_erep
;
}
wb_vrep
*
...
...
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