X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgroup-interface.hh;h=2a94f0783adc9f7f1825f1eece178f8ed2f80ab3;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=6d544f27ee6ed398464a2e096d510530853b77ce;hpb=c659cb200486c2f908703696a1b2873e78c8160a;p=lilypond.git diff --git a/lily/include/group-interface.hh b/lily/include/group-interface.hh index 6d544f27ee..2a94f0783a 100644 --- a/lily/include/group-interface.hh +++ b/lily/include/group-interface.hh @@ -1,17 +1,16 @@ -/* +/* group-interface.hh -- declare Group_interface - + source file of the GNU LilyPond music typesetter - - (c) 1999--2004 Han-Wen Nienhuys - - */ + + (c) 1999--2008 Han-Wen Nienhuys +*/ #ifndef GROUP_INTERFACE_HH #define GROUP_INTERFACE_HH #include "grob.hh" -#include "string.hh" +#include "std-string.hh" /** Look at Score element ELT as thing which has a list property called NAME_. Normally the list would contain Grobs, but @@ -23,34 +22,9 @@ struct Group_interface { public: - static int count (Grob* , String); - static void add_thing (Grob*, SCM, SCM); - static void add_thing (Grob*, String nm, SCM); + static int count (Grob *, SCM); + static void add_thing (Grob *, SCM, SCM); }; -struct Pointer_group_interface : public Group_interface { -public: - static void add_grob (Grob*, SCM nm, Grob*e); -}; - -template -Link_array -Pointer_group_interface__extract_grobs (Grob const *elt, T *, const char* name) -{ - Link_array arr; - - for (SCM s = elt->get_property (name); scm_is_pair (s); s = scm_cdr (s)) - { - SCM e = scm_car (s); - arr.push (dynamic_cast (unsmob_grob (e))); - } - - arr.reverse (); - return arr; -} - - - - #endif /* GROUP_INTERFACE_HH */