lilypond-1.3.28
[lilypond.git] / lily / property-iterator.cc
blob06d34035ed152ab1dff8b5aed25bd4a1973609f8
1 /*
2 property-iterator.cc -- implement Property_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "property-iterator.hh"
10 #include "translation-property.hh"
11 #include "translator-group.hh"
13 /**
14 There is no real processing to a property: just lookup the
15 translation unit, and set the property.
17 void
18 Property_iterator::do_process_and_next (Moment m)
20 Translation_property const * prop = dynamic_cast<Translation_property const*> (music_l_);
21 if (prop->var_str_.length_i ())
22 report_to_l ()->set_property (prop->var_str_, prop->value_);
23 Music_iterator::do_process_and_next (m);