2 context-specced-music-iterator.cc -- implement
4 source file of the GNU LilyPond music typesetter
6 (c) 2002--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "music-wrapper-iterator.hh"
11 #include "translator-group.hh"
13 class Context_specced_music_iterator : public Music_wrapper_iterator
16 VIRTUAL_COPY_CONS(Music_iterator);
17 DECLARE_SCHEME_CALLBACK(constructor,());
18 virtual void construct_children ();
22 Context_specced_music_iterator::construct_children ()
24 SCM ct = get_music ()->get_mus_property ("context-type");
27 c_type = ly_scm2string (ct);
30 SCM ci = get_music ()->get_mus_property ("context-id");
32 c_id = ly_scm2string (ci);
35 =report_to ()->find_create_translator (c_type, c_id);
39 Music_wrapper_iterator::construct_children();
41 IMPLEMENT_CTOR_CALLBACK(Context_specced_music_iterator);