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
9add1965
Commit
9add1965
authored
Feb 28, 2003
by
lw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
778e61de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
wb/exe/wb_wbltest/src/wb_wbltest.cpp
wb/exe/wb_wbltest/src/wb_wbltest.cpp
+35
-2
No files found.
wb/exe/wb_wbltest/src/wb_wbltest.cpp
View file @
9add1965
...
@@ -2,15 +2,47 @@
...
@@ -2,15 +2,47 @@
#include "pwr.h"
#include "pwr.h"
#include "wb_erep.h"
#include "wb_erep.h"
#include "wb_env.h"
#include "wb_env.h"
#include "wb_vrepdbs.h"
#include "wb_vrep.h"
#include "wb_dbs.h"
#include "wb_db.h"
#include "wb_vrepwbl.h"
#include "wb_vrepwbl.h"
#include "wb_vrepdbs.h"
#include "wb_orepdbs.h"
#include "wb_orepwbl.h"
#include "wb_orepwbl.h"
#include "wb_volume.h"
#include "wb_volume.h"
#include "wb_session.h"
#include "wb_session.h"
#include "wb_error.h"
#include "wb_error.h"
extern
"C"
{
#include "co_dbs.h"
#include "co_time.h"
#include "co_time.h"
#if 1
int
main
(
int
argc
,
char
*
argv
[])
{
pwr_tStatus
sts
;
//dbs_sEnv env;
//dbs_sEnv *ep;
wb_erep
*
erep
=
new
wb_erep
();
if
(
argc
<=
1
)
exit
(
0
);
// ep = dbs_Map(&sts, &env, argv[1]);
wb_vrepdbs
*
vdbs
=
new
wb_vrepdbs
(
erep
,
argv
[
1
]);
vdbs
->
load
();
wb_dbs
dbs
(
vdbs
);
dbs
.
setFileName
(
"/home/lw/lasse.dbs"
);
dbs
.
importVolume
(
*
vdbs
);
wb_orepdbs
*
op
=
(
wb_orepdbs
*
)
vdbs
->
object
(
&
sts
);
wb_db
db
(
vdbs
->
vid
());
db
.
create
(
vdbs
->
vid
(),
vdbs
->
cid
(),
vdbs
->
name
(),
"/home/lw/lasse.db"
);
db
.
importVolume
(
*
vdbs
);
db
.
close
();
}
}
#else
static
pwr_tStatus
iterFunc
(
void
*
udata
,
static
pwr_tStatus
iterFunc
(
void
*
udata
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
pwr_tOid
fwsoid
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
pwr_tOid
fwsoid
,
pwr_tOid
bswoid
,
pwr_tOid
fchoid
,
pwr_tOid
lchoid
,
char
*
name
,
pwr_tOid
bswoid
,
pwr_tOid
fchoid
,
pwr_tOid
lchoid
,
char
*
name
,
...
@@ -85,7 +117,7 @@ int main( int argc, char *argv[])
...
@@ -85,7 +117,7 @@ int main( int argc, char *argv[])
// Print the resulting tree
// Print the resulting tree
// cout << wbl->rootAST[0]->toStringTree() << endl;
// cout << wbl->rootAST[0]->toStringTree() << endl;
wbl
->
iterObject
(
(
void
*
)
22
,
iterFunc
);
//
wbl->iterObject( (void *)22, iterFunc);
erep
->
removeExtern
(
&
sts
,
wbl
);
erep
->
removeExtern
(
&
sts
,
wbl
);
delete
ses
;
delete
ses
;
...
@@ -111,3 +143,4 @@ static pwr_tStatus iterFunc( void *udata,
...
@@ -111,3 +143,4 @@ static pwr_tStatus iterFunc( void *udata,
#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