The primary activity in this paper involves entering data into the various Class Wizard dialog screens. As data are entered, the lower-list box in each dialog shows a line-by-line summary of the data. To assist you in data entry, a screen shot of each completed dialog is included. That way, all variables and functions are provided as you will see them displayed on your screen. The syntax of each line in the lower-list box is easy, and converting from the display to individual fields quickly becomes obvious. In addition, a shorthand table description of the data in each field is provided. The first step is of course entering data. The second step allows Class Wizard to generate class files. At this point, group-of-eight functions are fully functional. Objects can be created and displayed, and direct-link public variables can be accessed and mutated. Even so, this is not the final step. Some files will require postgeneration tailoring. The list of files includes most of the public and private functions that give each class their unique behavior. Enter the names and arguments for these functions, and Class Wizard will give you a head start by generating the initial version. The initial version contains full header comments but not much more. For example, a description for draw can be included in the Public Functions dialog, but until it is tailored, calling draw will not do anything. The implementation isn't complete until code for the application-specific member functions has been added. The example code for this paper includes a copy of the as-generated files in a directory separate from the full solution.
Class Wizard Versions of the Shape Hierarchy, Page 1 of 2
< Previous page Next page > /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch18-1.gif /docserver/preview/fulltext/books/pc/sbpc001e/SBPC001E_ch18-2.gif