home *** CD-ROM | disk | FTP | other *** search
Wrap
unit BobNotes_c; { This file was generated on 2 Mar 2000 06:32:20 GMT by version 03.03.02.C3.03 } { of the Inprise VisiBroker idl2pas CORBA IDL compiler. } { Please do not edit the contents of this file. If you wish to modify them you } { should do so by editing and recompiling the original IDL which was located in the } { fileBobNotes.idl. } { Delphi Pascal unit BobNotes_c for the BobNotes IDL module. } { The purpose of this file is to implement the client-side classes (stubs) required } { by the associated Interface unit (BobNotes_i). } { This unit must be matched with the associated skeleton unit on the server side. } { This unit contains the stub code for IDL module BobNotes. } {** IDL Source : "BobNotes.idl", line 1 ** IDL Name : module ** Repository Id : IDL:BobNotes:1.0 **} interface uses CORBA, BobNotes_i; type TICorBobNotesHelper = class; TICorBobNotesStub = class; EICorBobNotes_PermissionDenied = class; TCorBobNotesFactoryHelper = class; TCorBobNotesFactoryStub = class; { Pascal helper class "BobNotes_c.TICorBobNotesHelper" for the Pascal interface "BobNotes_i.ICorBobNotes". } {** IDL Source : "BobNotes.idl", line 3 ** IDL Name : interface ** Repository Id : IDL:BobNotes/ICorBobNotes:1.0 **} TICorBobNotesHelper = class class procedure Insert (var _A: CORBA.Any; const _Value : BobNotes_i.ICorBobNotes); class function Extract(var _A: CORBA.Any) : BobNotes_i.ICorBobNotes; class function TypeCode : CORBA.TypeCode; class function RepositoryId : string; class function Read (const _Input : CORBA.InputStream) : BobNotes_i.ICorBobNotes; class procedure Write(const _Output : CORBA.OutputStream; const _Value : BobNotes_i.ICorBobNotes); class function Narrow(const _Obj : CORBA.CORBAObject; _IsA : Boolean = False) : BobNotes_i.ICorBobNotes; class function Bind(const _InstanceName : string = ''; _HostName : string = '') : BobNotes_i.ICorBobNotes; overload; class function Bind(_Options : BindOptions; const _InstanceName : string = ''; _HostName: string = '') : BobNotes_i.ICorBobNotes; overload; end; { Pascal stub class "BobNotes_c.TICorBobNotesStub supporting the Pascal interface "BobNotes_i.ICorBobNotes". } {** IDL Source : "BobNotes.idl", line 3 ** IDL Name : interface ** Repository Id : IDL:BobNotes/ICorBobNotes:1.0 **} TICorBobNotesStub = class(CORBA.TCORBAObject, BobNotes_i.ICorBobNotes) public {** IDL Source : "BobNotes.idl", line 10 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/GetLines:1.0 **} procedure GetLines ( const User : WideString; const Password : WideString; out Lines : WideString); virtual; {** IDL Source : "BobNotes.idl", line 12 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/SetLines:1.0 **} procedure SetLines ( const User : WideString; const Password : WideString; const Lines : WideString); virtual; {** IDL Source : "BobNotes.idl", line 14 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/Answer:1.0 **} procedure Answer ( out Answer : Integer); virtual; {** IDL Source : "BobNotes.idl", line 15 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/StringAnswer:1.0 **} procedure StringAnswer ( const Question : Integer; out Answer : WideString); virtual; {** IDL Source : "BobNotes.idl", line 16 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/StringAnswer2:1.0 **} procedure StringAnswer2 ( const Question : WideString; out Answer : WideString); virtual; end; { Signature for the Pascal stub class "BobNotes_c.EICorBobNotes_PermissionDenied" supporting the IDL exception "PermissionDenied". } {** IDL Source : "BobNotes.idl", line 5 ** IDL Name : exception ** Repository Id : IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0 **} EICorBobNotes_PermissionDenied = class(UserException) private FReason : AnsiString; protected function _get_Reason : AnsiString; virtual; public property Reason : AnsiString read _get_Reason; procedure Copy(const _Input : InputStream); override; end; { Pascal helper class "BobNotes_c.TCorBobNotesFactoryHelper" for the Pascal interface "BobNotes_i.CorBobNotesFactory". } {** IDL Source : "BobNotes.idl", line 19 ** IDL Name : interface ** Repository Id : IDL:BobNotes/CorBobNotesFactory:1.0 **} TCorBobNotesFactoryHelper = class class procedure Insert (var _A: CORBA.Any; const _Value : BobNotes_i.CorBobNotesFactory); class function Extract(var _A: CORBA.Any) : BobNotes_i.CorBobNotesFactory; class function TypeCode : CORBA.TypeCode; class function RepositoryId : string; class function Read (const _Input : CORBA.InputStream) : BobNotes_i.CorBobNotesFactory; class procedure Write(const _Output : CORBA.OutputStream; const _Value : BobNotes_i.CorBobNotesFactory); class function Narrow(const _Obj : CORBA.CORBAObject; _IsA : Boolean = False) : BobNotes_i.CorBobNotesFactory; class function Bind(const _InstanceName : string = ''; _HostName : string = '') : BobNotes_i.CorBobNotesFactory; overload; class function Bind(_Options : BindOptions; const _InstanceName : string = ''; _HostName: string = '') : BobNotes_i.CorBobNotesFactory; overload; end; { Pascal stub class "BobNotes_c.TCorBobNotesFactoryStub supporting the Pascal interface "BobNotes_i.CorBobNotesFactory". } {** IDL Source : "BobNotes.idl", line 19 ** IDL Name : interface ** Repository Id : IDL:BobNotes/CorBobNotesFactory:1.0 **} TCorBobNotesFactoryStub = class(CORBA.TCORBAObject, BobNotes_i.CorBobNotesFactory) public {** IDL Source : "BobNotes.idl", line 21 ** IDL Name : operation ** Repository Id : IDL:BobNotes/CorBobNotesFactory/CreateInstance:1.0 **} function CreateInstance ( const InstanceName : AnsiString): BobNotes_i.ICorBobNotes; virtual; end; implementation var { Pascal proxy "BobNotes_c.ICorBobNotes_PermissionDeniedDesc" for the IDL exception PermissionDenied. } {** IDL Source : "BobNotes.idl", line 5 ** IDL Name : exception ** Repository Id : IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0 **} ICorBobNotes_PermissionDeniedDesc : PExceptionDescription; { Implementation of the Pascal helper class "BobNotes_c.TICorBobNotesHelper" supporting the Pascal interface "BobNotes_i.ICorBobNotes. } {** IDL Source : "BobNotes.idl", line 3 ** IDL Name : interface ** Repository Id : IDL:BobNotes/ICorBobNotes:1.0 **} class procedure TICorBobNotesHelper.Insert(var _A : CORBA.Any; const _Value : BobNotes_i.ICorBobNotes); begin _A := Orb.MakeObjectRef( TICorBobNotesHelper.TypeCode, _Value as CORBA.CORBAObject); end; class function TICorBobNotesHelper.Extract(var _A : CORBA.Any): BobNotes_i.ICorBobNotes; var _obj : Corba.CorbaObject; begin _obj := Orb.GetObjectRef(_A); Result := TICorBobNotesHelper.Narrow(_obj, True); end; class function TICorBobNotesHelper.TypeCode : CORBA.TypeCode; begin Result := ORB.CreateInterfaceTC(RepositoryId, 'ICorBobNotes'); end; class function TICorBobNotesHelper.RepositoryId : string; begin Result := 'IDL:BobNotes/ICorBobNotes:1.0'; end; class function TICorBobNotesHelper.Read(const _Input : CORBA.InputStream) : BobNotes_i.ICorBobNotes; var _Obj : CORBA.CORBAObject; begin _Input.ReadObject(_Obj); Result := Narrow(_Obj, True) end; class procedure TICorBobNotesHelper.Write(const _Output : CORBA.OutputStream; const _Value : BobNotes_i.ICorBobNotes); begin _Output.WriteObject(_Value as CORBA.CORBAObject); end; class function TICorBobNotesHelper.Narrow(const _Obj : CORBA.CORBAObject; _IsA : Boolean) : BobNotes_i.ICorBobNotes; begin Result := nil; if (_Obj = nil) or (_Obj.QueryInterface(BobNotes_i.ICorBobNotes, Result) = 0) then Exit; if _IsA and _Obj._IsA(RepositoryId) then Result := TICorBobNotesStub.Create(_Obj); end; class function TICorBobNotesHelper.Bind(const _InstanceName : string = ''; _HostName: string = '') : BobNotes_i.ICorBobNotes; begin Result := Narrow(ORB.bind(RepositoryId, _InstanceName, _HostName), True); end; class function TICorBobNotesHelper.Bind(_Options : BindOptions; const _InstanceName : string = ''; _HostName : string = '') : BobNotes_i.ICorBobNotes; begin Result := Narrow(ORB.bind(RepositoryId, _Options, _InstanceName, _HostName), True); end; { Implementation of the Pascal stub class "BobNotes_c.TICorBobNotesStub" supporting the Pascal "BobNotes_i.ICorBobNotes" interface. } { Implementation of Interface methods representing IDL operations. } {** IDL Source : "BobNotes.idl", line 10 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/GetLines:1.0 **} procedure TICorBobNotesStub.GetLines ( const User : WideString; const Password : WideString; out Lines : WideString); var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('GetLines',True, _Output); _Output.WriteWstring(User); _Output.WriteWstring(Password); inherited _Invoke(_Output, _Input); _Input.ReadWstring(Lines); end; {** IDL Source : "BobNotes.idl", line 12 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/SetLines:1.0 **} procedure TICorBobNotesStub.SetLines ( const User : WideString; const Password : WideString; const Lines : WideString); var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('SetLines',True, _Output); _Output.WriteWstring(User); _Output.WriteWstring(Password); _Output.WriteWstring(Lines); inherited _Invoke(_Output, _Input); end; {** IDL Source : "BobNotes.idl", line 14 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/Answer:1.0 **} procedure TICorBobNotesStub.Answer ( out Answer : Integer); var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('Answer',True, _Output); inherited _Invoke(_Output, _Input); _Input.ReadLong(Answer); end; {** IDL Source : "BobNotes.idl", line 15 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/StringAnswer:1.0 **} procedure TICorBobNotesStub.StringAnswer ( const Question : Integer; out Answer : WideString); var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('StringAnswer',True, _Output); _Output.WriteLong(Question); inherited _Invoke(_Output, _Input); _Input.ReadWstring(Answer); end; {** IDL Source : "BobNotes.idl", line 16 ** IDL Name : operation ** Repository Id : IDL:BobNotes/ICorBobNotes/StringAnswer2:1.0 **} procedure TICorBobNotesStub.StringAnswer2 ( const Question : WideString; out Answer : WideString); var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('StringAnswer2',True, _Output); _Output.WriteWstring(Question); inherited _Invoke(_Output, _Input); _Input.ReadWstring(Answer); end; { Implementation of the Pascal stub class "BobNotes_c.EICorBobNotes_PermissionDenied" supporting the Pascal "BobNotes_c.EICorBobNotes_PermissionDenied" interface. } {** IDL Source : "BobNotes.idl", line 5 ** IDL Name : exception ** Repository Id : IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0 **} function EICorBobNotes_PermissionDenied._get_Reason : AnsiString; begin Result := FReason; end; procedure EICorBobNotes_PermissionDenied.Copy(const _Input: InputStream); begin _Input.ReadString(FReason); end; function ICorBobNotes_PermissionDenied_Factory: PExceptionProxy; cdecl; begin with BobNotes_c.EICorBobNotes_PermissionDenied.Create() do Result := Proxy; end; { Implementation of the Pascal helper class "BobNotes_c.TCorBobNotesFactoryHelper" supporting the Pascal interface "BobNotes_i.CorBobNotesFactory. } {** IDL Source : "BobNotes.idl", line 19 ** IDL Name : interface ** Repository Id : IDL:BobNotes/CorBobNotesFactory:1.0 **} class procedure TCorBobNotesFactoryHelper.Insert(var _A : CORBA.Any; const _Value : BobNotes_i.CorBobNotesFactory); begin _A := Orb.MakeObjectRef( TCorBobNotesFactoryHelper.TypeCode, _Value as CORBA.CORBAObject); end; class function TCorBobNotesFactoryHelper.Extract(var _A : CORBA.Any): BobNotes_i.CorBobNotesFactory; var _obj : Corba.CorbaObject; begin _obj := Orb.GetObjectRef(_A); Result := TCorBobNotesFactoryHelper.Narrow(_obj, True); end; class function TCorBobNotesFactoryHelper.TypeCode : CORBA.TypeCode; begin Result := ORB.CreateInterfaceTC(RepositoryId, 'CorBobNotesFactory'); end; class function TCorBobNotesFactoryHelper.RepositoryId : string; begin Result := 'IDL:BobNotes/CorBobNotesFactory:1.0'; end; class function TCorBobNotesFactoryHelper.Read(const _Input : CORBA.InputStream) : BobNotes_i.CorBobNotesFactory; var _Obj : CORBA.CORBAObject; begin _Input.ReadObject(_Obj); Result := Narrow(_Obj, True) end; class procedure TCorBobNotesFactoryHelper.Write(const _Output : CORBA.OutputStream; const _Value : BobNotes_i.CorBobNotesFactory); begin _Output.WriteObject(_Value as CORBA.CORBAObject); end; class function TCorBobNotesFactoryHelper.Narrow(const _Obj : CORBA.CORBAObject; _IsA : Boolean) : BobNotes_i.CorBobNotesFactory; begin Result := nil; if (_Obj = nil) or (_Obj.QueryInterface(BobNotes_i.CorBobNotesFactory, Result) = 0) then Exit; if _IsA and _Obj._IsA(RepositoryId) then Result := TCorBobNotesFactoryStub.Create(_Obj); end; class function TCorBobNotesFactoryHelper.Bind(const _InstanceName : string = ''; _HostName: string = '') : BobNotes_i.CorBobNotesFactory; begin Result := Narrow(ORB.bind(RepositoryId, _InstanceName, _HostName), True); end; class function TCorBobNotesFactoryHelper.Bind(_Options : BindOptions; const _InstanceName : string = ''; _HostName : string = '') : BobNotes_i.CorBobNotesFactory; begin Result := Narrow(ORB.bind(RepositoryId, _Options, _InstanceName, _HostName), True); end; { Implementation of the Pascal stub class "BobNotes_c.TCorBobNotesFactoryStub" supporting the Pascal "BobNotes_i.CorBobNotesFactory" interface. } { Implementation of Interface methods representing IDL operations. } {** IDL Source : "BobNotes.idl", line 21 ** IDL Name : operation ** Repository Id : IDL:BobNotes/CorBobNotesFactory/CreateInstance:1.0 **} function TCorBobNotesFactoryStub.CreateInstance ( const InstanceName : AnsiString): BobNotes_i.ICorBobNotes; var _Output: CORBA.OutputStream; _Input : CORBA.InputStream; begin inherited _CreateRequest('CreateInstance',True, _Output); _Output.WriteString(InstanceName); inherited _Invoke(_Output, _Input); Result := BobNotes_c.TICorBobNotesHelper.Read(_Input); end; initialization { Initialization of the Pascal helper class "BobNotes_c.TICorBobNotesStub". } {** IDL Source : "BobNotes.idl", line 3 ** IDL Name : interface ** Repository Id : IDL:BobNotes/ICorBobNotes:1.0 **} CORBA.InterfaceIDManager.RegisterInterface(BobNotes_i.ICorBobNotes, BobNotes_c.TICorBobNotesHelper.RepositoryId); { Initialization of the BobNotes_c.TICorBobNotesStub interface stub for the BobNotes_i.ICorBobNotesInterface. } {** IDL Source : "BobNotes.idl", line 3 ** IDL Name : interface ** Repository Id : IDL:BobNotes/ICorBobNotes:1.0 **} CORBA.StubManager.RegisterStub(BobNotes_i.ICorBobNotes, BobNotes_c.TICorBobNotesStub); { Initialization of the Pascal helper class "BobNotes_c.TCorBobNotesFactoryStub". } {** IDL Source : "BobNotes.idl", line 19 ** IDL Name : interface ** Repository Id : IDL:BobNotes/CorBobNotesFactory:1.0 **} CORBA.InterfaceIDManager.RegisterInterface(BobNotes_i.CorBobNotesFactory, BobNotes_c.TCorBobNotesFactoryHelper.RepositoryId); { Initialization of the BobNotes_c.TCorBobNotesFactoryStub interface stub for the BobNotes_i.CorBobNotesFactoryInterface. } {** IDL Source : "BobNotes.idl", line 19 ** IDL Name : interface ** Repository Id : IDL:BobNotes/CorBobNotesFactory:1.0 **} CORBA.StubManager.RegisterStub(BobNotes_i.CorBobNotesFactory, BobNotes_c.TCorBobNotesFactoryStub); { Initalization of the Pascal stub class "BobNotes_c.EICorBobNotes_PermissionDenied" supporting the Pascal exception "BobNotes_c.EICorBobNotes_PermissionDenied" (IDL exception PermissionDenied). } {** IDL Source : "BobNotes.idl", line 5 ** IDL Name : exception ** Repository Id : IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0 **} BobNotes_c.ICorBobNotes_PermissionDeniedDesc := RegisterUserException('PermissionDenied', 'IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0', @BobNotes_c.ICorBobNotes_PermissionDenied_Factory); finalization { Finalization of the Pascal exception "BobNotes_c.EICorBobNotes_PermissionDenied". } {** IDL Source : "BobNotes.idl", line 5 ** IDL Name : exception ** Repository Id : IDL:BobNotes/ICorBobNotes/PermissionDenied:1.0 **} UnRegisterUserException(BobNotes_c.ICorBobNotes_PermissionDeniedDesc); end.