AM2 Documentation

Appendix B Creating Wrapped Classes


This chapter explains how to create your own wrapped classes using the wrap script, a facility intended for C++ programmers who want to extend the capabilities of AM2 by installing their own code in the system. Most AM2 users do not need this facility.

The chapter describes the model the wrap script uses and the details of how to wrap a C++ class to make it visible in the ADL. It also describes the model of inheritance the wrap script provides and describes the features that support it.

The purpose of the wrap script is to help the programmers publish C++ classes to the ADL as wrapped classes. Once published, a wrapped class is almost indistinguishable from a user-defined class in the ADL. For this reason, it is important that you understand the differences between wrapped classes and user-defined classes. To learn more about the two, see Section 3.23, "Wrapped Classes" page 44 before continuing. If you are not familiar with the wrapped classes that come with the ADL, see Chapter 6, "Wrapped Class Reference".

B.1 - Wrap Script Model
B.2 - How to Wrap a C++ Class
B.2 - Inheritance Model of the Wrap Script
B.3 - The Wrap Script and the Macintosh

AM2 Documentation - 19 NOV 1996

Generated with Harlequin WebMaker