Hosted by
|
package body Music.Directions is
function Create
(Placement : in Placement_Enum)
return Direction_Access
is
Result : Direction_Access := new Direction;
begin
Result.Placement := Placement;
return Result;
end Create;
function Get_Placement
(This : access Direction)
return Placement_Enum is
begin
return This.Placement;
end Get_Placement;
procedure Set_Dir_Type
(This : access Direction;
Dir_Type : in Dir_Type_Access) is
begin
This.Dir_Type := Dir_Type;
end Set_Dir_Type;
function Get_Dir_Type
(This : access Direction)
return Dir_Type_Access is
begin
return This.Dir_Type;
end Get_Dir_Type;
procedure Set_Offset
(This : access Direction;
Offset : in Integer := 0) is
begin
This.Offset := Offset;
end Set_Offset;
function Get_Offset
(This : access Direction)
return Integer is
begin
return This.Offset;
end Get_Offset;
end Music.Directions;
|