2006-05-30 16:23:25 +02:00
|
|
|
unit uPSComponent_DB;
|
|
|
|
|
|
|
|
interface
|
2007-03-16 10:59:59 +01:00
|
|
|
{$I PascalScript.inc}
|
2006-05-30 16:23:25 +02:00
|
|
|
uses
|
|
|
|
SysUtils, Classes, uPSComponent, uPSRuntime, uPSCompiler;
|
|
|
|
type
|
2007-03-16 10:59:59 +01:00
|
|
|
|
2006-05-30 16:23:25 +02:00
|
|
|
TPSImport_DB = class(TPSPlugin)
|
2009-03-19 09:48:53 +01:00
|
|
|
public
|
2006-05-30 16:23:25 +02:00
|
|
|
procedure CompileImport1(CompExec: TPSScript); override;
|
|
|
|
procedure ExecImport1(CompExec: TPSScript; const ri: TPSRuntimeClassImporter); override;
|
|
|
|
public
|
|
|
|
end;
|
2007-03-16 10:59:59 +01:00
|
|
|
|
2006-05-30 16:23:25 +02:00
|
|
|
TIFPS3CE_DB = class(TPSImport_DB);
|
|
|
|
|
|
|
|
implementation
|
|
|
|
uses
|
|
|
|
uPSC_DB,
|
|
|
|
uPSR_DB;
|
|
|
|
|
|
|
|
{ TPSImport_DB }
|
|
|
|
|
|
|
|
procedure TPSImport_DB.CompileImport1(CompExec: TPSScript);
|
|
|
|
begin
|
|
|
|
SIRegister_DB(CompExec.Comp);
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TPSImport_DB.ExecImport1(CompExec: TPSScript;
|
|
|
|
const ri: TPSRuntimeClassImporter);
|
|
|
|
begin
|
|
|
|
RIRegister_DB(RI);
|
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|