-- $Date: 2004/03/08 11:05:10 $
-- $Revision: 1.2 $
-- $Author: jcrocholl $
-- $Hash: 2ab503e8f65d50036a6ad65af7e9ee15 $

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

package body Music.Directions is

   -- Constructor for instances.
   function Create
     (Placement : in Placement_Enum-- The initial placement.
     return Direction_Access         -- The newly created direction.
   is
      Result : Direction_Access := new Direction;
   begin
      Result.Placement := Placement;
      return Result;
   end Create;

   -- Accessor to read the placement of a direction.
   function Get_Placement
     (This : access Direction-- The direction to read from.
     return Placement_Enum is  -- The placement of that direction.
   begin
      return This.Placement;
   end Get_Placement;

   -- Mutator to update the dir type of a direction.
   procedure Set_Dir_Type
     (This     : access Direction;      -- The direction to be updated.
      Dir_Type : in Dir_Type_Access) is -- The new dir type of that direction.
   begin
      This.Dir_Type := Dir_Type;
   end Set_Dir_Type;

   -- Accessor to read the dir type of a direction.
   function Get_Dir_Type
     (This : access Direction-- The direction to read from.
     return Dir_Type_Access is -- The dir type of that direction.
   begin
      return This.Dir_Type;
   end Get_Dir_Type;

   -- Mutator to update the offset of a direction.
   procedure Set_Offset
     (This   : access Direction;   -- The direction to be updated.
      Offset : in Integer := 0) is -- The new offset of that direction.
   begin
      This.Offset := Offset;
   end Set_Offset;

   -- Accessor to read the offset of a direction.
   function Get_Offset
     (This : access Direction-- The direction to read from.
     return Integer is         -- The offset of that direction.
   begin
      return This.Offset;
   end Get_Offset;

end Music.Directions;