next up previous contents
Next: Plug-in argument list Up: QSAS Template Language (QTPL) Previous: QTPL fundamentals: layout, punctuation,   Contents

Plug-in declaration

This has the form plug-in-type plug-in-name argument-list.

Plug-in-type keyword
begins a plug-in declaration: it must be the first non-comment text in a template. The only type currently supported is EXTERNAL, as used in the example.

Plug-in name
follows the type keyword, and must be a valid name for a QTPL variable. It is local to the template and independent of the name of the associated C++ function, although it may be convenient for them to be similar. The example plug-in is named XY2Polar.

Argument list
follows the plug-in name, and has the syntax

(inout datatype varname, inout datatype varname, $\dots$).

The QTPL arguments must correspond in sequence and datatype to the QSAS data-object pointers expected by the C++ plug-in.

There is a limit of 30 outputs, but input slots are unlimited, and if too many slots are specified to fit on the screen the plugin interface window becomes scrollable.

Body of the template
follows the argument list, and is enclosed in curly braces {} .


next up previous contents
Next: Plug-in argument list Up: QSAS Template Language (QTPL) Previous: QTPL fundamentals: layout, punctuation,   Contents
Anthony Allen 2005-11-07