Files
PolyORB/Examples/Bank/server.adb
Laurent Pautet 43aeba34b6 Clietn /Server example
Subversion-branch: /importfromcvs/trunk
Subversion-revision: 46106
1997-02-13 13:49:34 +00:00

46 lines
1.0 KiB
Ada

with Bank; use Bank;
package body Server is
function Balance
(Customer : in Customer_Type;
Password : in Password_Type)
return Integer is
begin
return Bank.Balance (Customer, Password);
end Balance;
procedure Deposit
(Customer : in Customer_Type;
Amount : in Positive) is
begin
Bank.Deposit (Customer, Amount);
end Deposit;
procedure Register
(Terminal : in Terminal_Access;
Customer : in Customer_Type;
Password : in Password_Type) is
begin
Bank.Register (Terminal, Customer, Password);
end Register;
procedure Transfer
(Donator : in Customer_Type;
Password : in Password_Type;
Amount : in Positive;
Customer : in Customer_Type) is
begin
Bank.Transfer (Donator, Password, Amount, Customer);
end Transfer;
procedure Withdraw
(Customer : in Customer_Type;
Password : in Password_Type;
Amount : in Positive) is
begin
Bank.Withdraw (Customer, Password, Amount);
end Withdraw;
end Server;