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


next up previous contents index
Next: servers.running - Function Up: servers - Tool Previous: servers.run - Function


servers.done - Function



Package utility
Module tasking
Tool servers


Delete a tool


Synopsis
done(id, objectid)


Description

The done function closes ie., it calls the destructor, of the C++ object associated with the specified tool. When all the objects that use a server have been shutdown the done function will also shutdown the server.

Once a object has been shutdown it is generally advisable to diasble the tool associated with the C++ object. An example of how this is done is given below.



Arguments

id   Identifies which server to use
    Allowed: A positive integer obtained from the activate function.
    Default: no default
objectid   The object to delete.
    Allowed: The objectid field of the record returned by the create function.
    Default: no default


Returns
T or a fail


Example
      public.done  := function() {
        wider public, private;
        ok := defaultservers.done(private.serverid, private.toolid.objectid);
        if (ok) {
          val private := F;
          val public := F;
         }
        return ok;
      }
Assuming the toolid and serverid variables have been defined as shown in the examples for the activate or create functions, it is possible to shutdown the tool and perhaps the server using this function.



next up previous contents index
Next: servers.running - Function Up: servers - Tool Previous: servers.run - 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