source: branches/Independent/Devices/FileSystem.pas

Last change on this file was 68, checked in by chronos, 11 days ago
  • Added: Mouse API support.
File size: 613 bytes
Line 
1unit FileSystem;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9 TLoadFileEvent = function (Name: string): string of object;
10
11 { TFileSystem }
12
13 TFileSystem = class
14 private
15 FOnLoadFile: TLoadFileEvent;
16 public
17 function LoadFile(Name: string): string;
18 constructor Create;
19 published
20 property OnLoadFile: TLoadFileEvent read FOnLoadFile write FOnLoadFile;
21 end;
22
23implementation
24
25{ TFileSystem }
26
27function TFileSystem.LoadFile(Name: string): string;
28begin
29 if Assigned(FOnLoadFile) then Result := FOnLoadFile(Name)
30 else Result := '';
31end;
32
33constructor TFileSystem.Create;
34begin
35end;
36
37end.
38
Note: See TracBrowser for help on using the repository browser.