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
45074177
Commit
45074177
authored
Mar 21, 2018
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt script function Quit() added
parent
61bed774
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
0 deletions
+96
-0
src/doc/man/en_us/man_opg.dat
src/doc/man/en_us/man_opg.dat
+12
-0
src/doc/man/sv_se/man_opg.dat
src/doc/man/sv_se/man_opg.dat
+69
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+15
-0
No files found.
src/doc/man/en_us/man_opg.dat
View file @
45074177
...
...
@@ -2865,6 +2865,7 @@ GetUser() <LINK> getuser()
GetPrivileges() <LINK> getprivileges()
GetGraphInstance() <LINK> getgraphinstance()
GetGraphInstanceNext() <LINK> getgraphinstancenext()
Quit() <LINK> quit()
<h2>xtt-commands
xtt-commands <LINK> xtt-commands
...
...
@@ -4089,6 +4090,7 @@ GetUser() <t>Get the current user. <LINK> getuser()
GetPrivileges() <t>Get the privileges for the current user. <LINK> getprivileges()
GetGraphInstance() <t>Get the instance object for a graph. <LINK> getgraphinstance()
GetGraphInstanceNext() <t>Get the instance object for next graph. <LINK> getgraphinstancenext()
Quit() <t>Quit the operator environment. <LINK> quit()
</TOPIC>
<headerlevel>
...
...
@@ -4384,6 +4386,16 @@ string <t>previous <t>Previous instance.
<c> endwile
</TOPIC>
<TOPIC> quit() <style> function
Quit()
Quit()
<b>Description
Quit the operator environment.
</TOPIC>
</headerlevel>
<TOPIC> xtt-commands <style> function
...
...
src/doc/man/sv_se/man_opg.dat
View file @
45074177
...
...
@@ -2638,6 +2638,9 @@ ODD() <LINK> ODD()
get_language() <LINK> get_language()
GetUser() <LINK> getuser()
GetPrivileges() <LINK> getprivileges()
GetGraphInstance() <LINK> getgraphinstance()
GetGraphInstanceNext() <LINK> getgraphinstancenext()
Quit() <LINK> quit()
<h2>xtt-commands
xtt-commands <LINK> xtt-commands
...
...
@@ -3850,6 +3853,9 @@ ODD() <t>Testa om ett v
get_language() <t>Hämta nuvarande språk <LINK> get_language()
GetUser() <t>Hämta nuvarande användare. <LINK> getuser()
GetPrivileges() <t>Hämta privilegier för nuvarande användare. <LINK> getprivileges()
GetGraphInstance() <t>Hämta instansobjekt för en objektgraf. <LINK> getgraphinstance()
GetGraphInstanceNext() <t>Hämta instansobjekt för nästa graf. <LINK> getgraphinstancenext()
Quit() <t>Avsluta operatörsmiljön. <LINK> quit()
</TOPIC>
<headerlevel>
...
...
@@ -4092,6 +4098,69 @@ H
<c> ...
<c> endif
</TOPIC>
<TOPIC> getgraphinstance() <style> function
GetGraphInstance()
string GetGraphInstance( string graph)
<b>Beskrivning
Hämta instansobjektet för en öppnad objektsbild.
Returnerar instansobjektet, eller en tom sträng om
grafen inte är öppnad.
<b>Argument
string <t>graph <t>Filnamn för graf.
<b>Exempel
<c> string instance;
<c> instance = GetGraphInstance( "$pwr_exe/pwr_c_dv.pwg");
</TOPIC>
<TOPIC> getgraphinstancenext() <style> function
GetGraphInstanceNext()
string GetGraphInstanceNext( string graph, string previous)
<b>Beskrivning
Hämta nästa instansobjekt för den angivna objektsbilden.
Används när flera versioner av samma objektsbild är öppen
för olika objekt.
Returnerar instansobjektet, eller en tom sträng om det inte
finns någon mer instans.
<b>Argument
string <t>graph <t>Filname för graf.
string <t>previous <t>Föregående instans.
<b>Exempel
<c> string instance;
<c> instance = GetGraphInstance( "$pwr_exe/pwr_c_dv.pwg");
<c> while ( instance != "")
<c> printf( "Instance %s\n", instance);
<c> instance = GetGraphInstanceNext( "$pwr_exe/pwr_c_dv.pwg", instance);
<c> endwile
</TOPIC>
<TOPIC> quit() <style> function
Quit()
Quit()
<b>Beskrivning
Avsluta operatörsmiljön.
</TOPIC>
</headerlevel>
<TOPIC> xtt-commands <style> function
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
45074177
...
...
@@ -9415,6 +9415,19 @@ static int xnav_getgraphinstancenext_func(
return
1
;
}
static
int
xnav_quit_func
(
void
*
filectx
,
ccm_sArg
*
arg_list
,
int
arg_count
,
int
*
return_decl
,
ccm_tFloat
*
return_float
,
ccm_tInt
*
return_int
,
char
*
return_string
)
{
exit
(
0
);
return
0
;
}
static
int
xnav_ccm_deffilename_func
(
char
*
outfile
,
char
*
infile
,
void
*
client_data
)
{
pwr_tFileName
fname
;
...
...
@@ -9502,6 +9515,8 @@ int XNav::readcmdfile( char *incommand, char *buffer)
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ccm_register_function
(
"GetGraphInstanceNext"
,
xnav_getgraphinstancenext_func
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ccm_register_function
(
"Quit"
,
xnav_quit_func
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ccm_create_external_var
(
"GLOW__SUBTERMINATED"
,
CCM_DECL_INT
,
0
,
GLOW__SUBTERMINATED
,
0
);
...
...
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