source: branches/CpuSingleSize/Project.pas

Last change on this file was 238, checked in by chronos, 16 months ago
  • Modified: Removed U prefix from unit names.
  • Fixed: Memory leaks.
File size: 895 bytes
Line 
1unit Project;
2
3interface
4
5uses
6 Classes, SysUtils, Generics.Collections;
7
8type
9 TProjectItem = class
10 Name: string;
11 end;
12
13 TProjectItems = class(TObjectList<TProjectItem>)
14
15 end;
16
17 TProjectFile = class
18 Content: string;
19 end;
20
21 { TProjectFolder }
22
23 TProjectFolder = class
24 Items: TProjectItems;
25 constructor Create;
26 destructor Destroy; override;
27 end;
28
29 { TProject }
30
31 TProject = class
32 FileName: string;
33 Items: TProjectItems;
34 constructor Create;
35 destructor Destroy; override;
36 end;
37
38implementation
39
40{ TProjectFolder }
41
42constructor TProjectFolder.Create;
43begin
44 Items := TProjectItems.Create;
45end;
46
47destructor TProjectFolder.Destroy;
48begin
49 FreeAndNil(Items);
50 inherited;
51end;
52
53{ TProject }
54
55constructor TProject.Create;
56begin
57 Items := TProjectItems.Create;
58end;
59
60destructor TProject.Destroy;
61begin
62 FreeAndNil(Items);
63 inherited;
64end;
65
66end.
67
Note: See TracBrowser for help on using the repository browser.