-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit_tfllproject.pas
74 lines (55 loc) · 1.7 KB
/
unit_tfllproject.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
unit unit_tfllproject;
{$mode ObjFPC}{$H+}
interface
uses
Classes, SysUtils, unit_tfllbase, unit_tfllengine;
type
{ TFLLProject Pointer }
PTFLLProject = ^TFLLProject;
{ TFLLProject }
TFLLProject = class(TFLLBase)
private
FProjectName: string;
FProjectPath: string;
//FEngine: PTFLLEngine;
FEngine: TFLLEngine;
procedure SetProjectName(const value: string);
procedure SetProjectPath(const value: string);
procedure SetEngine(const value: TFLLEngine);
public
constructor Create(const DBID: Integer; const ProjectName: string; const ProjectPath: string; const Engine: TFLLEngine);
property ProjectName: string read FProjectName write SetProjectName;
property ProjectPath: string read FProjectPath write SetProjectPath;
property Engine: TFLLEngine read FEngine write SetEngine;
function ToString: string;
end;
implementation
constructor TFLLPRoject.Create(const DBID: Integer; const ProjectName: string; const ProjectPath: string; const Engine: TFLLEngine);
begin
FID := DBID;
FProjectName := ProjectName;
FProjectPath := ProjectPath;
FEngine := Engine;
end;
procedure TFLLPRoject.SetProjectName(const value: string);
begin
if FProjectNAme <> value then
FProjectName := value;
end;
procedure TFLLPRoject.SetProjectPath(const value: string);
begin
if FProjectPath <> value then
FProjectPath := value;
end;
procedure TFLLPRoject.SetEngine(const value: TFLLEngine);
begin
if FEngine <> value then
FEngine := value;
end;
function TFLLProject.ToString: string;
begin
Result := Format('%s (%s) Uses Engine %s',
[ProjectName, ProjectPath,
FEngine.ToString]);
end;
end.