2 group-interface.hh -- declare Group_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef GROUP_INTERFACE_HH
11 #define GROUP_INTERFACE_HH
13 #include "lily-proto.hh"
15 #include "lily-guile.hh"
18 struct Group_interface
20 Score_element * elt_l_;
23 Group_interface (Score_element const*);
24 Group_interface (Score_element const*, String);
26 bool has_interface_b ();
27 void set_interface ();
28 void add_element (Score_element*);
31 Group_interface group (Score_element*);
32 Group_interface group (Score_element*, String);
36 Link_array<T> Group_interface__extract_elements (T *, String name);
40 Group_interface__extract_elements (Score_element const *elt, T *, String name)
44 for (SCM s = elt->get_elt_property (name); gh_pair_p (s); s = gh_cdr (s))
47 assert (SMOB_IS_TYPE_B(Score_element,e));
48 Score_element* se = SMOB_TO_TYPE(Score_element, e);
49 arr.push (dynamic_cast<T*> (se));
59 #endif /* GROUP_INTERFACE_HH */