-- $Date: 2004/03/08 11:05:10 $
-- $Revision: 1.4 $
-- $Author: jcrocholl $
-- $Hash: 9017e372a6ef968741f397eea078b87d $

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

package body Lyrics is

   -- Constructor for instances.
   function Create
     (Number   : in Natural := 0;  -- The initial number.
      Syllabic : in Syllabic_Enum-- The initial syllabic.
      Text     : in String;        -- The initial text.
      Special  : in Special_Enum)  -- The initial special.
     return Lyric_Access           -- The newly created lyric.
   is
      Result : Lyric_Access := new Lyric;
   begin
      Result.Number := Number;
      Result.Syllabic := Syllabic;
      To_String_Access(Text, Result.Text);
      Result.Special := Special;
      return Result;
   end Create;

   -- Accessor to read the number of a lyric.
   function Get_Number
     (This : access Lyric-- The lyric to read from.
     return Natural is     -- The number of that lyric.
   begin
      return This.Number;
   end Get_Number;

   -- Accessor to read the syllabic of a lyric.
   function Get_Syllabic
     (This : access Lyric)   -- The lyric to read from.
     return Syllabic_Enum is -- The syllabic of that lyric.
   begin
      return This.Syllabic;
   end Get_Syllabic;

   -- Accessor to read the text of a lyric.
   function Get_Text
     (This : access Lyric-- The lyric to read from.
     return String is      -- The text of that lyric.
   begin
      return To_String(This.Text);
   end Get_Text;

   -- Accessor to read the special of a lyric.
   function Get_Special
     (This : access Lyric)  -- The lyric to read from.
     return Special_Enum is -- The special of that lyric.
   begin
      return This.Special;
   end Get_Special;

end Lyrics;