Componentes.Terceros.RemObj.../official/5.0.24.615/RemObjects SDK for Delphi/Samples/FPC Server/NewService_Impl.pas

56 lines
1.4 KiB
ObjectPascal

unit NewService_Impl;
{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading }
{ the RODL file associated with this project . }
{ }
{ This is where you are supposed to code the implementation of your objects. }
{----------------------------------------------------------------------------}
{$I Remobjects.inc}
interface
uses
{vcl:} Classes, SysUtils,
{RemObjects:} uROXMLIntf, uROClientIntf, uROTypes, uROServer, uROServerIntf, uROSessions,
{Generated:} NewLibrary_Intf;
type
{ TNewService }
TNewService = class(TRORemotable, INewService)
private
protected
{ INewService methods }
function Sum(const A: Integer; const B: Integer): Integer;
function GetServerTime: DateTime;
end;
implementation
uses
{Generated:} NewLibrary_Invk;
procedure Create_NewService(out anInstance : IUnknown);
begin
anInstance := TNewService.Create;
end;
{ NewService }
function TNewService.Sum(const A: Integer; const B: Integer): Integer;
begin
Result := a + b;
end;
function TNewService.GetServerTime: DateTime;
begin
result := Now;
end;
initialization
TROClassFactory.Create('NewService', Create_NewService, TNewService_Invoker);
finalization
end.