]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/group-interface.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / group-interface.hh
index 3327c0a8d84b91176d6213bff8f35c032f3f8ad0..a4077a6fd413473efebf604bb380fa0cc8ba1963 100644 (file)
@@ -1,20 +1,27 @@
-/*   
-  group-interface.hh -- declare Group_interface
-  
-  source file of the GNU LilyPond music typesetter
-  
-  (c)  1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
+/*
+  This file is part of LilyPond, the GNU music typesetter.
+
+  Copyright (C) 1999--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
+*/
 
 #ifndef GROUP_INTERFACE_HH
 #define GROUP_INTERFACE_HH
 
-#include "lily-proto.hh"
-#include "string.hh"
-#include "lily-guile.hh"
-
 #include "grob.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
 struct Group_interface
 {
 public:
-  static int count (Grob*  , String);
-  static void add_thing (Grob*, SCM, SCM);
-  static void add_thing (Grob*, String nm, SCM);
-};
-
-struct Pointer_group_interface : public Group_interface {
-public:
-  static void add_grob (Grob*, SCM nm, Grob*e);
+  static int count (Grob *, SCM);
+  static void add_thing (Grob *, SCM, SCM);
 };
 
-template<class T>
-Link_array<T>
-Pointer_group_interface__extract_grobs (Grob const *elt, T *, const char* name)
-{
-  Link_array<T> arr;
-
-  for (SCM s = elt->get_grob_property (name); gh_pair_p (s); s = gh_cdr (s))
-    {
-      SCM e = gh_car (s);
-      arr.push (dynamic_cast<T*> (unsmob_grob (e)));
-    }
-
-  arr.reverse ();
-  return arr;
-}
-
-
-
-
 #endif /* GROUP_INTERFACE_HH */