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


next up previous contents index
Next: An Overview of the Value Class Up: The Glish 2.7 User Manual DRAFT Previous: Command Line Editing


The Glish Client Library

You make a program into a Glish client by using the Glish Client Library. This is a C++ class library that provides four basic classes, Value, Client, GlishEvent, Proxy, and ProxyStore:

Client
encapsulates the program's connection to the Glish world: it provides methods for sending and receiving events. It is defined in the header Glish/Client.h, which is the standard header included by a Glish client.

Value
encapsulates a Glish Value, giving access to values identical to Glish variables (dynamically-typed vectors and records). It is a rich, complex class. It is defined in the header Glish/Value.h, which is automatically included by Glish/Client.h.

GlishEvent
encapsulates a single Glish event; that is, a name and an associated value. It is also defined in Glish/Client.h.

ProxyStore
this class is used for clients which wish to create proxy clients. Proxy clients allow a single client to make available multiple agents. Proxy clients are used by glishtk (see § 11, page [*]) to allow it to make each of the Tk widgets available to a Glish script. ProxyStore is the repository for all of the proxy clients created in a single client process. This class is defined in Glish/Proxy.h which is not included by Glish/Client.h.

Proxy
this is the base class for all of the proxy clients created in a single client process. This class is defined in Glish/Proxy.h.

First, each class is briefly discussed. An example is then constructed using the classes. Following the example the full details of the Client and Value classes are presented. (GlishEvent is simple enough that it is entirely covered in this section.) Finally, an overview of the (unfortunately few) Glish clients that come with the Glish system are discussed.




next up previous contents index
Next: An Overview of the Value Class Up: The Glish 2.7 User Manual DRAFT Previous: Command Line Editing   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