📄 serverapp_tlb.pas
字号:
unit ServerApp_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : $Revision: 1.130 $
// File generated on 2001-8-28 1:12:53 from Type Library described below.
// ************************************************************************ //
// Type Lib: G:\book_delphi\Delphi6组件开发\第五章 CORBA分布式应用程序结构\S5_2\ServerApp.tlb (1)
// LIBID: {1A1C2168-E677-4D46-9661-E51E8F2E5C20}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINNT\System32\stdvcl40.dll)
// (3) v1.0 Midas, (C:\WINNT\System32\midas.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
interface
uses ActiveX, Classes, CORBAObj, CorbaStd, Graphics, Midas, OrbPas,
StdVCL, SysUtils, Variants, Windows;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
ServerAppMajorVersion = 1;
ServerAppMinorVersion = 0;
LIBID_ServerApp: TGUID = '{1A1C2168-E677-4D46-9661-E51E8F2E5C20}';
IID_IDataCorbaServer: TGUID = '{18C9DCDC-0B1B-4338-9B82-07E6E92B12F9}';
CLASS_DataCorbaServer: TGUID = '{3937166F-1607-435B-9699-D7FD53B7937F}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IDataCorbaServer = interface;
IDataCorbaServerDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
DataCorbaServer = IDataCorbaServer;
// *********************************************************************//
// Interface: IDataCorbaServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {18C9DCDC-0B1B-4338-9B82-07E6E92B12F9}
// *********************************************************************//
IDataCorbaServer = interface(IAppServer)
['{18C9DCDC-0B1B-4338-9B82-07E6E92B12F9}']
end;
// *********************************************************************//
// DispIntf: IDataCorbaServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {18C9DCDC-0B1B-4338-9B82-07E6E92B12F9}
// *********************************************************************//
IDataCorbaServerDisp = dispinterface
['{18C9DCDC-0B1B-4338-9B82-07E6E92B12F9}']
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant;
MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
Options: Integer; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
function AS_GetProviderNames: OleVariant; dispid 20000003;
function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
var OwnerData: OleVariant): OleVariant; dispid 20000005;
procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
end;
TDataCorbaServerStub = class(TAppServerStub, IDataCorbaServer)
public
end;
TDataCorbaServerSkeleton = class(TAppServerSkeleton)
private
FIntf: IDataCorbaServer;
public
constructor Create(const InstanceName: string; const Impl: IUnknown); override;
procedure GetImplementation(out Impl: IUnknown); override; stdcall;
published
end;
// *********************************************************************//
// The Class CoDataCorbaServer provides a Create and CreateRemote method to
// create instances of the default interface IDataCorbaServer exposed by
// the CoClass DataCorbaServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoDataCorbaServer = class
class function Create: IDataCorbaServer;
class function CreateRemote(const MachineName: string): IDataCorbaServer;
end;
TDataCorbaServerCorbaFactory = class
class function CreateInstance(const InstanceName: string): IDataCorbaServer;
end;
implementation
uses ComObj;
{ TDataCorbaServerStub }
{ TDataCorbaServerSkeleton }
constructor TDataCorbaServerSkeleton.Create(const InstanceName: string; const Impl: IUnknown);
begin
inherited;
inherited InitSkeleton('DataCorbaServer', InstanceName, 'IDL:ServerApp/IDataCorbaServer:1.0', tmMultiThreaded, True);
FIntf := Impl as IDataCorbaServer;
end;
procedure TDataCorbaServerSkeleton.GetImplementation(out Impl: IUnknown);
begin
Impl := FIntf;
end;
class function CoDataCorbaServer.Create: IDataCorbaServer;
begin
Result := CreateComObject(CLASS_DataCorbaServer) as IDataCorbaServer;
end;
class function CoDataCorbaServer.CreateRemote(const MachineName: string): IDataCorbaServer;
begin
Result := CreateRemoteComObject(MachineName, CLASS_DataCorbaServer) as IDataCorbaServer;
end;
class function TDataCorbaServerCorbaFactory.CreateInstance(const InstanceName: string): IDataCorbaServer;
begin
Result := CorbaFactoryCreateStub('IDL:ServerApp/DataCorbaServerFactory:1.0', 'DataCorbaServer',
InstanceName, '', IDataCorbaServer) as IDataCorbaServer;
end;
initialization
CorbaStubManager.RegisterStub(IDataCorbaServer, TDataCorbaServerStub);
CorbaInterfaceIDManager.RegisterInterface(IDataCorbaServer, 'IDL:ServerApp/IDataCorbaServer:1.0');
CorbaSkeletonManager.RegisterSkeleton(IDataCorbaServer, TDataCorbaServerSkeleton);
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -