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
d22d0ab4
Commit
d22d0ab4
authored
Feb 06, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Command create snapshot added
parent
5c82abb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
wb/lib/wb/src/wb_wnav_command.cpp
wb/lib/wb/src/wb_wnav_command.cpp
+42
-1
No files found.
wb/lib/wb/src/wb_wnav_command.cpp
View file @
d22d0ab4
...
...
@@ -61,6 +61,10 @@ extern "C" {
#include "ge.h"
#include "wb_wda.h"
#include "wb_env.h"
#include "wb_erep.h"
#include "wb_vrepwbl.h"
#define WNAV_MENU_CREATE 0
#define WNAV_MENU_ADD 1
...
...
@@ -223,7 +227,7 @@ dcli_tCmdTable wnav_command_table[] = {
"/COMMAND"
,
"/AFTER"
,
"/BEFORE"
,
"/FIRSTCHILD"
,
"/LASTCHILD"
,
"/VOLUME"
,
"/ALL"
,
"/CLASS"
,
"/DEBUG"
,
"/NODECONFIG"
,
"/NAME"
,
"/IDENTITY"
,
"/FILES"
,
"/NAME"
,
"/IDENTITY"
,
"/FILES"
,
"/OUT"
,
""
}
},
{
...
...
@@ -3420,6 +3424,43 @@ static int wnav_create_func( void *client_data,
sts
=
wnav
->
command
(
cmd
);
if
(
EVEN
(
sts
))
return
sts
;
}
else
if
(
strncmp
(
arg1_str
,
"SNAPSHOT"
,
strlen
(
arg1_str
))
==
0
)
{
char
filestr
[
80
];
char
outstr
[
80
];
pwr_tStatus
sts
;
// Command is "CREATE SNAPSHOT"
if
(
EVEN
(
dcli_get_qualifier
(
"/FILES"
,
filestr
)))
{
wnav
->
message
(
'E'
,
"Qualifer required"
);
return
WNAV__QUAL
;
}
if
(
EVEN
(
dcli_get_qualifier
(
"/OUT"
,
outstr
)))
{
wnav
->
message
(
'E'
,
"Qualifer required"
);
return
WNAV__QUAL
;
}
sts
=
wnav_wccm_get_wbctx_cb
(
wnav
,
&
wnav
->
wbctx
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
WNAV__SUCCESS
;
try
{
wb_erep
*
erep
=
*
(
wb_env
*
)
wnav
->
wbctx
;
wb_vrepwbl
*
wbl
=
new
wb_vrepwbl
(
erep
);
wbl
->
load
(
filestr
);
wbl
->
createSnapshot
(
outstr
);
}
catch
(
wb_error
&
e
)
{
sts
=
e
.
sts
();
}
if
(
EVEN
(
sts
))
wnav
->
message
(
' '
,
wnav_get_message
(
sts
));
return
sts
;
}
else
{
wnav
->
message
(
'E'
,
"Syntax error"
);
...
...
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