]> git.donarmstrong.com Git - lilypond.git/blob - lily/property-iterator.cc
release: 1.3.73
[lilypond.git] / lily / property-iterator.cc
1 /*
2   property-iterator.cc -- implement Property_iterator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "property-iterator.hh"
10 #include "translation-property.hh"
11 #include "translator-group.hh"
12
13 /**
14   There is no real processing to a property: just lookup the
15   translation unit, and set the property.
16   */
17 void
18 Property_iterator::do_process_and_next (Moment m)
19 {
20   Translation_property * prop = dynamic_cast<Translation_property *> (music_l_);
21   SCM sym = prop->get_mus_property ("symbol");
22   if (gh_symbol_p(sym))
23     report_to_l ()->set_property (sym, prop->get_mus_property ("value"));
24   Music_iterator::do_process_and_next (m);
25 }
26