4 Star 1 Fork 1

camark / SendManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
IExeInf.pas 950 Bytes
一键复制 编辑 原始数据 按行查看 历史
提子的碎碎念 提交于 2013-08-30 15:00 . 'init'
unit IExeInf;
interface
uses
classes;
type
IExeInterface=interface
['{505C8811-F199-4FD2-8C16-2AD21F4DD948}']
function GetDescription:string;
function GetParam:string;
procedure Execute(folder:string);
end;
procedure RegisterExeInf(IE:IExeInterface);
function GetExeInf(strName:string):IExeInterface;
var
ExeList:TInterfaceList;
implementation
procedure RegisterExeInf(IE:IExeInterface);
begin
ExeList.Add(IE);
end;
function GetExeInf(strName:string):IExeInterface;
var
i:integer;
ie:IExeInterface;
temp:string;
begin
for i :=0 to ExeList.Count-1 do
begin
ie:=IExeInterface(ExeList.Items[i]);
temp:='-'+ie.GetParam;
if temp=strName then
begin
result:=ie;
exit;
end;
end;
result:=nil;
end;
initialization
ExeList:=TInterfaceList.Create;
finalization
ExeList.Destroy;
end.
Delphi
1
https://gitee.com/camark/SendManager.git
git@gitee.com:camark/SendManager.git
camark
SendManager
SendManager
master

搜索帮助