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


next up previous contents index
Next: aips2loc - Function Up: misc - Module Previous: timer.wait - Function


serverexists - Function



Package utility
Module misc


Does the specified server exist


Synopsis
serverexists(symbol, name, server) include "serverexists.g"


Arguments

symbol   Symbol of interest
    Allowed: String
name   The name of the type of server
    Allowed: String
server   The server tool
    Allowed: Glish closure tool


Returns
T or F



Description

This function can be used to see whether an AIPS++ server tool exists or not. It relies upon the Glish tool having the function type which returns the name of the type of server. For example, ``quanta'' for a quanta server, or ``regionmanager'' for a regionmanager server. All of the AIPS++ servers (or tools) should have this function.



Example

- include 'quanta,g'
- include 'serverexists.g'  
- serverexists('dq', 'quanta', dq);
T
- symbol_delete('dq');
- serverexists('dq', 'quanta', dq);
F


next up previous contents index
Next: aips2loc - Function Up: misc - Module Previous: timer.wait - 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