Progress
ADM 2 Reference
Source-file Types
Each ADM class is defined by a group of ten or more files. Some of the files define the base class as distributed by Progress. Others—they have the substring “custom” in their names—are supplied as a convenience to you and stored in
src\adm2\custom
. Use those when you write custom extensions or modifications. By doing so, you reduce the risk of accidently destroying your work when you update your Progress distribution.The naming convention for all files is: classname+filetype.extension. The classname portion can be spelled out in one filename but abbreviated in another within the same group, usually depending on total length. There is no convention for these abbreviations.
The standard files and their roles are:
- classname
.cld
— The class-definition file. It lists, in a comment, the class category, derivation, and the names of the class files.- classname
.i,
classnamecustom.i
— The primary and custom include-files. Unlike similar files in other languages such as C, these include-files sometimes have whole executable routines defined in them.- classname
.p,
classnamecustom.p
— The primary and custom super-procedure files. These files contain the source code for most of the routines that define the class.- classname
prop.i,
classnamepropcustom.i
— The primary and custom property-definition files.- classname
prto.i,
classnameprtocustom.i
— The primary and custom prototype files. These files contain prototype definitions for the routines in the super-procedure files (IN SUPER
). Prototype definitions are not the same asFORWARD
declarations.- classname
.w
— The template file.- classname
exclcustom.i
— The (custom) exclusions file. This file definesEXCLUDE
-identifier preprocessor variables that exclude routines from the super procedure.- classname
defscustom.i
— The (custom) instance-definitions file. This file deals with custom instance properties and defines the corresponding instance-property dialog box.For additional information, see the Progress ADM 2 Guide .
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |