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.


Constructor & Destructor Documentation

tcl::arg_dispatcher::~arg_dispatcher (  )  throw () [virtual]

Virtual destructor.

Definition at line 65 of file command.cc.


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:
Generated on Sun May 8 08:44:45 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3