| 28 |
|
public |
| 29 |
|
constructor Create(ConnectionID: Integer); |
| 30 |
|
procedure InitFile(id: Integer); |
| 31 |
+ |
procedure InitFileFields(id: Integer); |
| 32 |
|
|
| 33 |
|
property FileCount: Integer read GetFileCount; |
| 34 |
|
property FileById[Id: Integer]: TFile read GetFileById; |
| 59 |
|
|
| 60 |
|
procedure TMetaManager.InitFile(id: Integer); |
| 61 |
|
var |
| 61 |
– |
// i: Integer; |
| 62 |
|
typei: Integer; |
| 63 |
|
finfo: TFileInfo; |
| 64 |
|
begin |
| 85 |
|
end; |
| 86 |
|
end; |
| 87 |
|
end; |
| 88 |
+ |
|
| 89 |
+ |
procedure TMetaManager.InitFileFields(id: Integer); |
| 90 |
+ |
begin |
| 91 |
+ |
if id < ConManager.Connection[FConnectionID].GetFileCount then |
| 92 |
+ |
begin |
| 93 |
+ |
if not Assigned(FFiles[id]) then |
| 94 |
+ |
begin |
| 95 |
+ |
InitFile(id); |
| 96 |
+ |
if not (FFiles[id] is TFile_Empty) then |
| 97 |
+ |
FFiles[id].InitDataFields; |
| 98 |
+ |
end; |
| 99 |
+ |
end; |
| 100 |
+ |
end; |
| 101 |
|
|
| 102 |
|
procedure TMetaManager.InitRootFiles; |
| 103 |
|
var |