Changeset 12 for trunk/Compiler/Produce/UProducer.pas
- Timestamp:
- Nov 8, 2010, 10:06:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Produce/UProducer.pas
r6 r12 2 2 3 3 {$MODE Delphi} 4 {$MACRO ON} 4 5 5 6 interface 6 7 7 8 uses 8 USourceCode, Classes ;9 USourceCode, Classes, SysUtils; 9 10 10 11 type 11 12 TProducer = class 13 Name: string; 12 14 procedure AssignToStringList(Target: TStringList); virtual; abstract; 13 15 procedure Produce(Module: TModule); virtual; abstract; 14 16 end; 15 17 18 // TListProducer = TGObjectList<Integer, TProducer> 19 {$DEFINE TGObjectListIndex := Integer} 20 {$DEFINE TGObjectListItem := TProducer} 21 {$DEFINE TGObjectListList := TObjectListProducer} 22 {$DEFINE TGObjectList := TListProducer} 23 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer} 24 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer} 25 {$DEFINE INTERFACE} 26 {$I 'GenericObjectList.inc'} 27 16 28 implementation 17 29 30 {$DEFINE IMPLEMENTATION_USES} 31 {$I 'GenericObjectList.inc'} 32 33 // TListProducer = TGObjectList<Integer, TProducer> 34 {$DEFINE TGObjectListIndex := Integer} 35 {$DEFINE TGObjectListItem := TProducer} 36 {$DEFINE TGObjectListList := TObjectListProducer} 37 {$DEFINE TGObjectList := TListProducer} 38 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer} 39 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer} 40 {$DEFINE IMPLEMENTATION} 41 {$I 'GenericObjectList.inc'} 42 18 43 end.
Note:
See TracChangeset
for help on using the changeset viewer.