README.TXT	06/19/1997

Here is a collection of Object Domain scripts that I use with
Borland Delphi 2.0. Object Domain is an object oriented CASE
tool that you can find at http://www.object-domain.com/.

Object Pascal is by no means an ideal object oriented language, 
but the Delphi environment is great for fast application development 
and reuse of software through components. The scripts have support 
for generating both ordinary Object Pascal classes and components. 
To be able to generate code, your class must be part of a module.

The various scripts are:

Gendelph.tcl	Generates Delphi 2.0 code for modules.
Gendmak.tcl	Creates a makefile for modules.
Genhelp.tcl	Creates RTF files and compiles them with the
		Help Compiler to Windows help files.
Att2Prop.tcl	Converts attributes to Delphi properties.
Cl2Comp.tcl	Converts a class to a Delphi component.
InhBase.tcl	Copies base class overridable methods to a class.
Has2att.tcl	Adds attributes to classes for every has-relation.
Cllist.tcl	Creates a class diagram with all classes for a model.
Modlist.tcl	Creates a module diagram with all modules for a model.

To create a component from a class, you have to set some properties 
for the class:

Property	Value		Meaning

component	x		class is defined as a component
published	x		property is in published part
property	x		attribute is defined as property
index		number		index for property
read 		field/method	read specifier for property
write		field/method	write specifier
stored		true/false	stored specifier
default		value		default specifier

x = any value

The following properties for operations indicate constructors/destructors:

constructor	x		operation is constructor
destructor	x		operation is destructor

In the zip file, you can find a small example, example.ood, with
generated source code, help files and a makefile.

Please send any approvement suggestions, changes or comments to my e-mail address.

Enjoy!

Johan Nilsson
Autoliv Sverige AB
Wallentinsvagen 22
447 85 Vargarda
SWEDEN
tel: +46 322 26718
e-mail: thore.nilsson@ulricehamn.mail.telia.com

PS. Register this software by purhasing a car with an Autoliv
driver, passanger or side air bag installed! ;) DS.
