Hosted by
|
package body Scores is
function Create
return Score_Access
is
Result : Score_Access := new Score;
begin
Result.Parts := Part_Lists.Create;
return Result;
end Create;
procedure Set_Work
(This : access Score;
Work : in Work_Access) is
begin
This.Work := Work;
end Set_Work;
function Get_Work
(This : access Score)
return Work_Access is
begin
return This.Work;
end Get_Work;
procedure Set_Movement_Number
(This : access Score;
Movement_Number : in String) is
begin
To_String_Access(Movement_Number, This.Movement_Number);
end Set_Movement_Number;
function Get_Movement_Number
(This : access Score)
return String is
begin
return To_String(This.Movement_Number);
end Get_Movement_Number;
procedure Set_Movement_Title
(This : access Score;
Movement_Title : in String) is
begin
To_String_Access(Movement_Title, This.Movement_Title);
end Set_Movement_Title;
function Get_Movement_Title
(This : access Score)
return String is
begin
return To_String(This.Movement_Title);
end Get_Movement_Title;
procedure Set_Identification
(This : access Score;
Identification : in Identification_Access) is
begin
This.Identification := Identification;
end Set_Identification;
function Get_Identification
(This : access Score)
return Identification_Access is
begin
return This.Identification;
end Get_Identification;
function Get_Parts
(This : access Score)
return Part_List_Access is
begin
return This.Parts;
end Get_Parts;
procedure Add_Part
(This : access Score;
Part : in Part_Access) is
begin
Part_Lists.Push(This.Parts, Part);
end Add_Part;
end Scores;
|