next up previous contents
Next: Display objects Up: Program component descriptions Previous: Program component descriptions   Contents

Utility objects

Figure 1 illustrates the utility objects used in VMD program development. Several of these objects are C++ templates; instances of these classes are creates for different types, for example a Stack of integers or a Stack of char * items. These template and the other global objects are each detailed in section 23.

Figure 1: Utility objects used in VMD, and a key describing the function of diagrammatic items in these object description figures.
\resizebox{3in}{!}{\includegraphics{pictures/pg_utility_objects}}

The Inform class is deserving of particular notice, since it is one of the most widely used objects in VMD. This class provides a streams-like object which is used to print messages to the VMD console. There are four global instances of this class, which are used for the following purposes:

To use an Inform object, text and data are given to object using insertion («) operators, i.e.,
msgInfo « "This is message number " « intVariable « "." « sendmsg;
The sendmsg manipulator ends the message; this will cause the message to be printed to the console, prepended by a string indicating the type of messages, and appended by a newline.

There are also several utility functions which are not part of any class; these are described in section 22.


next up previous contents
Next: Display objects Up: Program component descriptions Previous: Program component descriptions   Contents
vmd@ks.uiuc.edu