Progress
ADM 2 Guide
Support Include Files
As noted in "Overview," a SmartObject template generally includes a single support include file: the primary include file for the class on which the SmartObject is based. This include file has the same name as the template (but a different extension). For example, the SmartDataViewer template
viewer.w
includes the primary include fileviewer.i
. A primary include file such asviewer.i
does not directly contain most of the code needed to support the SmartObject. It contains only those program elements required to compile a master built from that template:
- Any variable or other definitions needed by all masters of that type.
- A reference to the next support include file up the chain (for example, a SmartDataViewer is a visual object that displays data, so it includes
datavis.i
; if there is no other intermediate object above this type, it includessmart.i
), and its own property include file, which defines those properties stored in the ADMProps temp–table for the object.- Initialization code in the Main Block for this object type’s properties and any other generic object startup code.
- Any routine that requires compile-time resolution of preprocessors or that for some other reason must be part of the master’s compilation unit (
.r
file).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |