-- $Date: 2004/02/26 05:59:28 $
-- $Revision: 1.3 $
-- $Author: jcrocholl $

with Messages; use Messages;
with Measures; use Measures;
with Measures.Output; use Measures.Output;

package body Parts.Output is

   procedure Add
     (To   : access Collector'Class;
      This : access Part)
   is
      use Measure_Lists;
      Measures : Measure_List_Access := Get_Measures(This);
   begin
      -- Debug("adding part " & Get_Name(This));
      Add_Stave(To);
      Reset(Measures);
      while Next(Measures) loop
         Add(To, Current(Measures));
      end loop;
   end Add;

end Parts.Output;