]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/performance.hh
Run grand replace for 2015.
[lilypond.git] / lily / include / performance.hh
index 9612fb8aedd6c301639b6e12c21a15533352790d..14c811b150231cc2867de9ecdec455cf9d068f9c 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2011 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1997--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 class Performance : public Music_output
 {
 public:
-  Performance (bool ports=false);
+  Performance (bool ports = false);
   ~Performance ();
-  DECLARE_CLASSNAME(Performance);
+  DECLARE_CLASSNAME (Performance);
+
+  static Performance *unsmob (SCM p) {
+    return dynamic_cast <Performance *> (Music_output::unsmob (p));
+  }
+  static bool is_smob (SCM p) {
+    return Music_output::is_smob (p) && unsmob (p);
+  }
 
   void add_element (Audio_element *p);
   virtual void process ();
@@ -40,8 +47,8 @@ public:
   void print () const;
   void write_output (string filename) const;
 
-  vector<Audio_staff*> audio_staffs_;
-  vector<Audio_element*> audio_elements_;
+  vector<Audio_staff *> audio_staffs_;
+  vector<Audio_element *> audio_elements_;
   Output_def *midi_;
   bool ports_;
 };