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


next up previous contents index
Next: inputsmanager - Constructor Up: tasking - Module Previous: toolmanagertest - Function


inputsmanager - Tool



Package utility
Module tasking


Postscript file available

Tool for handling inputs for other tools



Description
inputsmanager is a tool for handling the inputs (function arguments) for AIPS++ tools. It provides command line interfaces for saving and retrieving all the inputs to a function. It is primarily used by toolmanager to save and restore inputs, but it can also be used directly from the glish command line. Note that inputs are not automatically saved in this manner when a function is invoked directly from the glish command line, although the command line history buffer can be used in that case.

The values of the inputs are stored as a record by inputsmanager for each tool function. For example, to retrieve the function arguments used last time that imager.setimage was run from the toolmanager:

- include 'inputsmanager.g'
- inputs.show()
Inputs:

  Row                  Time   Keyword
-------------------------------------
    1   2000/02/18/13:54:24  lastsave
T                                        
- inputs.getvalues('imager', 'setimage')
[nx=300, ny=300, cellx=[value=1.2, unit=arcsec], celly=[value=1.2,
unit=arcsec], stokes=IQUV, doshift=T, phasecenter=[m0=[value=0,
unit=deg], m1=[value=90, unit=deg], type=direction, refer=JUPITER],
shiftx=[value=0, unit=arcsec], shifty=[value=0, unit=arcsec],
mode=mfs, nchan=1, start=1, step=1, mstart=[value=0, unit=km/s],
mstep=[value=0, unit=km/s], spwid=1, fieldid=1, facets=1]

The current inputs may be saved to a specific slot named by the keyword chosen from the toolmanager. The default is 'lastsave'.

The values of the inputs are stored permanently in an AIPS++ table. The name of the file is aips++.inputs.table and thus a separate table will be created for every directory in which AIPS++ is run. This default file location may be overridden using an aipsrc variable. For example, to put consolidateall inputs in one place:

inputsmanager.file:	$HOME/aips++.inputs.table

Note that inputs are only saved from the toolmanager, and that the values are written to a disk-based table only when a save function is executed. A save is performed automatically on exit from glish. This means that you should always exit normally from glish if you wish the current inputs to be saved.

Tools
asynceval Asynchronous eval
clipboard clipboard object
inputsmanager Tool for handling inputs for other tools
logger Tool for logging
plugins attach code to tools at runtime
scripter scripter tool
servers A tool for sending events between glish and precompiled executables
toolmanager Tool for using AIPS++ tools and functions
types Tool for defining types known to the tasking system




next up previous contents index
Next: inputsmanager - Constructor Up: tasking - Module Previous: toolmanagertest - 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