tcl::arg_dispatcher Class Reference

#include <tcl/command.h>

Inheritance diagram for tcl::arg_dispatcher:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~arg_dispatcher () throw ()
 Virtual destructor.
virtual void dispatch (tcl::interpreter &interp, unsigned int objc, Tcl_Obj *const objv[], tcl::function &callback)=0


Detailed Description

tcl::arg_dispatcher. This may be subclassed in order to provide a different interface to the raw Tcl arguments (such as for vectorizing a function over a set of arguments). The default dispatcher used by tcl::command's implementation just sets up a tcl::call_context and calls invoke(). Errors should be signaled by throwing appropriate exceptions, which will be caught and returned back to the Tcl interpreter as normal Tcl error messages.

Definition at line 160 of file command.h.


Member Function Documentation

virtual void tcl::arg_dispatcher::dispatch ( tcl::interpreter interp,
unsigned int  objc,
Tcl_Obj *const   objv[],
tcl::function callback 
) [pure virtual]

Interprets the Tcl_Obj* arguments, sets up an appropriate tcl::call_context, and calls invoke() on the cmd with that context.

Implemented in tcl::vec_dispatcher.


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:48 2008 by Doxygen version 1.5.5.