Hosted by
|
package body Lyrics is
function Create
(Number : in Natural := 0;
Syllabic : in Syllabic_Enum;
Text : in String;
Special : in Special_Enum)
return Lyric_Access
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;
function Get_Number
(This : access Lyric)
return Natural is
begin
return This.Number;
end Get_Number;
function Get_Syllabic
(This : access Lyric)
return Syllabic_Enum is
begin
return This.Syllabic;
end Get_Syllabic;
function Get_Text
(This : access Lyric)
return String is
begin
return To_String(This.Text);
end Get_Text;
function Get_Special
(This : access Lyric)
return Special_Enum is
begin
return This.Special;
end Get_Special;
end Lyrics;
|