Commit cf044ba9 authored by Claes Sjofors's avatar Claes Sjofors

wb command, distribute /package added, and /first in create object bugfix

parent 55da58f0
......@@ -8924,6 +8924,7 @@ Commands
<b>delete volume<t>Delete a volume <LINK> delete volume
<b>disconnect <t>Disconnect signal and channel <LINK> disconnect
<b>display <t>Display a window <LINK> display
<b>distribute <t>Distribute to operator or process station <LINK> distribute
<b>edit <t>set edit mode <LINK> edit
<b>exit <t>close wtt <LINK> exit
<b>help <t>Display help <LINK> help help
......@@ -9292,6 +9293,20 @@ Display plant or node hierarchy window (w1 or w2).
<B>wtt> display w2
</TOPIC>
<TOPIC> distribute <style> function
Command distribute
Distribute files to operator or process station.
Creates a distribution package, copies the package to
the station and unpacks the package.
<B>wtt> distribute /node= [/package]
/node <t>Node to distribute to.
/package <t>Only create package. The packaged is created but not copied.
</TOPIC>
<TOPIC> edit <style> function
Command edit
......
......@@ -8813,6 +8813,7 @@ Kommandon
<b>delete volume<t>Ta bort en volym <LINK> delete volume
<b>disconnect <t>Koppla ifrån signal och kanal <LINK> disconnect
<b>display <t>Visa ett fönster <LINK> display
<b>distribute <t>Distribuera till operatörs eller processtation <LINK> distribute
<b>edit <t>Sätt edit mod <LINK> edit
<b>exit <t>Stäng wtt <LINK> exit
<b>help <t>Visa hjälp <LINK> help help
......@@ -9175,6 +9176,20 @@ Visa anl
<B>wtt> display w2
</TOPIC>
<TOPIC> distribute <style> function
Command distribute
Distribuerar filer till operatörs och processnoder.
Skapar ett distributions paket, kopierar paketet till
stationen och packar upp det.
<B>wtt> distribute /node= [/package]
/node <t>Nod att distribuera till.
/package <t>Skapar enbar ett paket. Paketet skapas men kopieras inte.
</TOPIC>
<TOPIC> edit <style> function
Kommando edit
......
......@@ -444,7 +444,7 @@ dcli_tCmdTable wnav_command_table[] = {
{
"DISTRIBUTE",
&wnav_distribute_func,
{ "/NODE", ""}
{ "/NODE", "/PACKAGE", ""}
},
{
"RELEASE",
......@@ -4108,8 +4108,8 @@ static int wnav_create_func( void *client_data,
pwr_tStatus sts;
// Command is "CREATE OBJECT"
first = ODD( dcli_get_qualifier( "/FIRST", 0, 0));
last = ODD( dcli_get_qualifier( "/LAST", 0, 0));
first = ODD( dcli_get_qualifier( "/FIRSTCHILD", 0, 0));
last = ODD( dcli_get_qualifier( "/LASTCHILD", 0, 0));
after = ODD( dcli_get_qualifier( "/AFTER", 0, 0));
before = ODD( dcli_get_qualifier( "/BEFORE", 0, 0));
......@@ -4825,7 +4825,12 @@ static int wnav_save_func( void *client_data,
void *client_flag)
{
WNav *wnav = (WNav *)client_data;
int sts;
int quiet;
sts = wnav_wccm_get_ldhsession_cb( wnav, &wnav->ldhses);
if ( EVEN(sts)) return sts;
quiet = ODD( dcli_get_qualifier( "/QUIET", 0, 0));
......@@ -4998,15 +5003,20 @@ static int wnav_distribute_func( void *client_data,
int sts;
char *node_ptr;
char node_str[80];
int package;
bool distribute;
if ( ODD( dcli_get_qualifier( "/NODE", node_str, sizeof(node_str))))
node_ptr = node_str;
else
node_ptr = NULL;
package = ODD( dcli_get_qualifier( "/PACKAGE", 0, 0));
distribute = package ? false : true;
sts = WNAV__SUCCESS;
try {
wb_pkg *pkg = new wb_pkg( node_ptr);
wb_pkg *pkg = new wb_pkg( node_ptr, distribute);
delete pkg;
}
catch ( wb_error &e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment