-- $Date: 2004/03/08 11:05:10 $
-- $Revision: 1.6 $
-- $Author: jcrocholl $
-- $Hash: 8d09a7e75d5747b3a68526962a6587ae $

-- This file was automatically created with ado.php.
-- Manual changes will be lost when it is updated.

package body Works is

   -- Constructor for instances.
   function Create
     (Number : in String-- The initial number.
      Title  : in String-- The initial title.
     return Work_Access   -- The newly created work.
   is
      Result : Work_Access := new Work;
   begin
      To_String_Access(Number, Result.Number);
      To_String_Access(Title, Result.Title);
      return Result;
   end Create;

   -- Accessor to read the number of a work.
   function Get_Number
     (This : access Work-- The work to read from.
     return String is     -- The number of that work.
   begin
      return To_String(This.Number);
   end Get_Number;

   -- Accessor to read the title of a work.
   function Get_Title
     (This : access Work-- The work to read from.
     return String is     -- The title of that work.
   begin
      return To_String(This.Title);
   end Get_Title;

end Works;