Hosted by
|
package body Works is
function Create
(Number : in String;
Title : in String)
return Work_Access
is
Result : Work_Access := new Work;
begin
To_String_Access(Number, Result.Number);
To_String_Access(Title, Result.Title);
return Result;
end Create;
function Get_Number
(This : access Work)
return String is
begin
return To_String(This.Number);
end Get_Number;
function Get_Title
(This : access Work)
return String is
begin
return To_String(This.Title);
end Get_Title;
end Works;
|