]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/request.hh
release: 1.0.15
[lilypond.git] / lily / include / request.hh
index eab7b2d8b07de1fb3328bb37a477f3cc5ad0b7ec..c45d5905e13b2f4b6f6db4a3eb4992eb300a6512 100644 (file)
@@ -29,16 +29,11 @@ class Request : public Music {
 
 public:
     
-  /* *************** */
-
   virtual ~Request(){}
 
   DECLARE_MY_RUNTIME_TYPEINFO;
   VIRTUAL_COPY_CONS(Request,Music);
     
-  virtual MInterval time_int() const;
-  virtual Moment duration() const { return 0; }
-
   /*  accessors for children
       maybe checkout RTTI
   */
@@ -82,5 +77,22 @@ public:
   Script_req (Script_req const&);
 };
 
-    
+
+/**
+  Requests to start or stop something.
+ This type of request typically results in the creation of a #Spanner#
+*/
+class Span_req  : public virtual Request  {
+public:
+  /// should the spanner start or stop, or is it unwanted?
+  enum Spantype {
+    NOSPAN, START, STOP
+  } spantype;
+  bool do_equal_b (Request*) const;
+  REQUESTMETHODS(Span_req);
+
+  Span_req();
+};
+
+
 #endif