tcl::script_app Class Reference

Use inside main() to initialize and run a scripting application. More...

#include <tcl/scriptapp.h>

Collaboration diagram for tcl::script_app:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Use inside main() to initialize and run a scripting application.

Definition at line 57 of file scriptapp.h.


Member Function Documentation

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::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.


The documentation for this class was generated from the following files:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:50 2008 by Doxygen version 1.5.5.