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

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

package body Times is

   -- Constructor for instances.
   function Create
     (Symbol       : in Symbol_Enum := Normal; -- The initial symbol.
      Beats        : in Positive;              -- The initial beats.
      Beat_Type    : in Positive;              -- The initial beat type.
      Senza_Misura : in Boolean)               -- The initial senza misura.
     return Time_Access                        -- The newly created time.
   is
      Result : Time_Access := new Time;
   begin
      Result.Symbol := Symbol;
      Result.Beats := Beats;
      Result.Beat_Type := Beat_Type;
      Result.Senza_Misura := Senza_Misura;
      return Result;
   end Create;

   -- Accessor to read the symbol of a time.
   function Get_Symbol
     (This : access Time)  -- The time to read from.
     return Symbol_Enum is -- The symbol of that time.
   begin
      return This.Symbol;
   end Get_Symbol;

   -- Accessor to read the beats of a time.
   function Get_Beats
     (This : access Time-- The time to read from.
     return Positive is   -- The beats of that time.
   begin
      return This.Beats;
   end Get_Beats;

   -- Accessor to read the beat type of a time.
   function Get_Beat_Type
     (This : access Time-- The time to read from.
     return Positive is   -- The beat type of that time.
   begin
      return This.Beat_Type;
   end Get_Beat_Type;

   -- Accessor to read the senza misura of a time.
   function Get_Senza_Misura
     (This : access Time-- The time to read from.
     return Boolean is    -- The senza misura of that time.
   begin
      return This.Senza_Misura;
   end Get_Senza_Misura;

end Times;