
Use inside main() to initialize and run a scripting application. More...
#include <tcl/scriptapp.h>

Public Member Functions | |
| script_app (const char *appname_, int argc_, char **argv_) throw () | |
| void | no_gui () |
| Don't load any packages that require a windowing system. | |
| void | splash (const char *msg) |
| Set a splash message to be shown at the beginning of run(). | |
| void | pkg_dir (const char *dir) |
| Specify a directory that should be searched for pkg libraries. | |
| void | packages (const package_info *pkgs_) |
| void | run () |
| int | exit_status () const |
Static Public Member Functions | |
| static void | init_in_macro_only () |
| static void | handle_exception_in_macro_only (const std::exception *e) |
Use inside main() to initialize and run a scripting application.
Definition at line 57 of file scriptapp.h.
| void tcl::script_app::no_gui | ( | ) | [inline] |
Don't load any packages that require a windowing system.
In particular, don't load Tk.
Definition at line 65 of file scriptapp.h.
| void tcl::script_app::pkg_dir | ( | const char * | dir | ) | [inline] |
Specify a directory that should be searched for pkg libraries.
Definition at line 77 of file scriptapp.h.
| void tcl::script_app::splash | ( | const char * | msg | ) | [inline] |
Set a splash message to be shown at the beginning of run().
The message will shown only if the program is being run interactively (i.e. not from a script), and the message will be pretty-printed with line-wrapping. Also, empty lines in msg will be replaced with a line of hashes ("#####...etc."); to get an empty line with no hashes, just pass a line with some invisible whitespace (e.g. " \n").
Definition at line 74 of file scriptapp.h.
1.6.3