Go up one levelGo to Previous Go to Next

TclCommand

TclCommand is a base class for C++ classes defining Tcl commands. It offers support for an [incr Tk] like interface. That is, Tcl commands defined in this framework can be declared as Tcl objects, where each object may have any number of methods or subcommands. Tcl subcommands are defined in a static array mapping the name of the subcommand to the C++ method that implements it. Inheritance is supported so that new subcommands may be added in a derived class. Each class in the hierarchy defines the virtual call method, which calls a C++ method, given its name and passes control to the base class if it does not know the method. The methods that implement the Tcl subcommands all take the same arguments: the argc and argv arguments that were passed to the command (minus the command name).

See TclCommand(3) for more details and examples.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory