Hosted by
|
with Enum_Strings; use Enum_Strings;
package Times is
type Symbol_Enum is (Common, Cut, Single_Number, Normal);
function To_Symbol_Enum is new To_Enum(Symbol_Enum);
type Time is limited private;
type Time_Access is access all Time;
function Create
(Symbol : in Symbol_Enum := Normal;
Beats : in Positive;
Beat_Type : in Positive;
Senza_Misura : in Boolean)
return Time_Access;
function Get_Symbol
(This : access Time)
return Symbol_Enum;
function Get_Beats
(This : access Time)
return Positive;
function Get_Beat_Type
(This : access Time)
return Positive;
function Get_Senza_Misura
(This : access Time)
return Boolean;
private
type Time is limited record
Symbol : Symbol_Enum := Normal;
Beats : Positive;
Beat_Type : Positive;
Senza_Misura : Boolean;
end record;
end Times;
|