Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: timer - Tool Up: plugins - Tool Previous: plugins.loaded - Function


plugins.attach - Function



Package utility
Module misc
Tool plugins


Attach plugins for a type to an tool


Synopsis
attach(type, objpublic)


Description
This is the only function that most programmers will have to call. You call it from the constructor(s) of your class. Its arguments are the class name (type), and the tool you are about to return to the user (that is, you pass it ``public'' if you are using the usual closure-tool idiom).

If necessary, it loads all the plugin (.gp) files for the requested types, and runs any plugin init() functions it finds. It then calls all the attach() functions on the loaded plugins. Those attach functions add functions to the tool.



Arguments

type   type (class) for which we want to load plugins
    Allowed: string
objpublic   the tool the constructor will return to the caller
    Allowed: record


Returns
reference to objpublic (so you can return it directly)







next up previous contents index
Next: timer - Tool Up: plugins - Tool Previous: plugins.loaded - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15