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


next up previous contents index
Next: aipsrc - Constructor Up: misc - Module Previous: os.done - Function


aipsrc - Tool



Package utility
Module misc


Postscript file available

tool to find aips resources from .aipsrc files

include "aipsrc.g"

Constructors
aipsrc Construct aipsrc tool
Functions
aipsarch The AIPSARCH directory string
aipshome The user's aips++ directory string
aipshost The AIPSHOST directory string
aipsroot The AIPSROOT directory string
aipssite The AIPSSITE directory string
done free resources used by tool
find lookup a resource definition
findbool lookup a boolean resource definition
findfloat lookup a float value resource definition
findint lookup a float value resource definition
findlist lookup a value in a code list
id identification of tool
init re-read all the .aipsrc files
type type of tool
tzoffset The local time zone offset



Description
The aipsrc tool is used to interrogate the .aipsrc files (AIPS++ resource files) to find values for a given keyword, and to connect with some of the more widely used keywords. More on aipsrc files can be found in the system manual, and in the aipsrcdata description.

Including the 'aipsrc.g' file creates a defaultaipsrc tool (also called drc.

Only in special cases it is necessary to create your own aipsrc tool.



Example
- include "aipsrc.g"
T 
- drc.find(where, "help.directory")   # use default server
T
- arc := aipsrc()                     # create your own tool
- arc.find(where, "help.directory")    
T 
- print where
/aips++/daily/sun4sol_gnu/doc/aips2help
- arc.find(where, "does.not.exist") 
F 
- arc.tzoffset()
10 
- arc.done()                          # delete your own tool




next up previous contents index
Next: aipsrc - Constructor Up: misc - Module Previous: os.done - 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