Hosted by
|
with Words.MusicXML; use Words.MusicXML;
package body Dir_Types.MusicXML is
function Read_Dir_Type
(XML : access XML_Reader)
return Dir_Type_Access
is
Result : Dir_Type_Access := Create;
begin
Exit_Tag(XML);
Set_Words(Result, Read_Words(XML));
return Result;
end Read_Dir_Type;
procedure Write_Dir_Type
(XML : access XML_Writer;
This : access Dir_Type)
is
begin
Start_Element(XML, "direction-type");
Write_Words(XML, Get_Words(This));
Close_Element(XML, "direction-type");
end Write_Dir_Type;
end Dir_Types.MusicXML;
|