![]() |
|||||||||||||||||
| Purpose: | Initialize the script environment for the evaluation and make the library modules from which functions are to be used, known to the Tcl interpreter. A Tcl library module is hereby a subdirectory of $TCL_LIBRARY, which contains modules with Tcl procedures. |
||||||||||||||||
| Synopsis: | opteval_script script lib ... |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Purpose: | Initialize the evaluation window and set the context variables. |
||||||||||||||||
| Synopsis: | opteval_start [quick] |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Result: | The evaluation info window is initialized. With opteval_verbose and opteval_silent the output of opteval_info can be forced resp. suppressed. Furthermore, the following variables are set and can be used globally in the script. |
||||||||||||||||
|
|||||||||||||||||
| Note: | The global variable pmk (model-kind) is used to check the model e_pm. In case e_pm, n_pm, log, win are not determined, then the variable must be deleted prior using the Tcl command unset. |
||||||||||||||||
| Purpose: | Stops the output in the evaluation window yet the message, sent in varargs is still displayed. This procedure should be called at the end of an evaluation. |
||||||||||||||||
| Synopsis: | opteval_end [varargs] |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Result: | The actions, specified in varargs are executed. |
||||||||||||||||
The output window remains open and can be used again for the next evaluation. |
|||||||||||||||||
The actions +clear, -clear, +pop and -pop change the settings of the information window as described in Extras/Options. |
|||||||||||||||||
| Purpose: | The evaluation of this command causes that all following outputs of opteval_info are suppressed. With the command opteval_verbose this situation can be undone again. |
||||||||||||||||
| Synopsis: | opteval_silent |
||||||||||||||||
| Purpose: | The evaluation of this command undoes the effect of opteval_silent. All further outputs of opteval_info are displayed again. |
||||||||||||||||
| Synopsis: | opteval_verbose |
||||||||||||||||
| Purpose: | Displays report messages or file contents in the evaluation window. When opteval_silent is set, the output is suppressed. |
||||||||||||||||
| Synopsis: | opteval_info varargs |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Result: | The actions, specified in varargs are executed. |
||||||||||||||||
The actions +clear, -clear, +pop and -pop change the settings of the information window as described in Extras/Options. |
|||||||||||||||||
| Purpose: | Displays a dot in the evaluation window. This command should be used in order to prevent in time consuming loops the impression that the application has hung up. The command does the same as inoevalProgress, except that no info window needs to be specified since the output is written into the evaluation window, initiated with opteval_start. |
||||||||||||||||
| Synopsis: | opteval_progress [-newline] |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Purpose: | This function is used to read the script arguments together with all its parameters. The passed argument list is reduced by the specified options and the parameters of the option are read out. Usually, all parameters of the given option are used but this can be influenced by using the readargs argument. Variable replacement does not take place as well as path' are not replaced (see opteval_pathoption). |
||||||||||||||||
| Synopsis: | opteval_option l_arg optname vals [readargs] |
||||||||||||||||
| Arguments: |
|
||||||||||||||||
| Result: | In case of a success the number of read parameters of the option is returned. In the argument vals, the desired number of parameters is written. |
||||||||||||||||
In case of an error, -1 is returned. |
|||||||||||||||||
| Example: | # Argument string: l_arg = "-lng CPP -dir C:\\tmp\\import" |
||||||||||||||||
opteval_option l_arg lng vals |
|||||||||||||||||
# Then vals contains "CPP", and l_args |
|||||||||||||||||
| Purpose: | This function is used to read out script arguments which have a path as parameter and works similar to opteval_option. The default value for the number of option values, to be read out is 1. In addition, the option values are translated into path names which can be processed by Tcl. Hereby, also environment variables are expanded (notation: UNIX $var, DOS %var% or Tcl $env(var)). |
||||||||||||||||
| Synopsis: | opteval_pathoption l_arg optname vals [readargs] |
||||||||||||||||
| Arguments: | The arguments correspond to the ones of opteval_option. |
||||||||||||||||
| Result: | In case of a success the number of read parameters of the option is returned. In the argument vals the desired number of parameters is written. |
||||||||||||||||
In case of an error, -1 is returned. |
|||||||||||||||||
| Example: | # Option string: l_arg = "-lng CPP -dir C:\\tmp\\import -inodir \$INODIR". |
||||||||||||||||
# After |
|||||||||||||||||
opteval_pathoption l_arg dir vals |
|||||||||||||||||
# comes in vals "C:/tmp/import" while l_arg is reduced to "-lng CPP -inodir \$INODIR". |
|||||||||||||||||
# With variable replacement: |
|||||||||||||||||
opteval_pathoption l_arg inodir vals |
|||||||||||||||||
# then vals contains for example "/ino60/inodir" |