]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.4
authorfred <fred>
Tue, 22 Oct 1996 20:02:12 +0000 (20:02 +0000)
committerfred <fred>
Tue, 22 Oct 1996 20:02:12 +0000 (20:02 +0000)
command.hh
scommands.hh [new file with mode: 0644]

index 353bf5d4bbb7cc4f3c26cbad8b53ad16aa52e66f..6b835e964bd8e307c5583aa6c9a85bd7ff9ec1a4 100644 (file)
@@ -3,11 +3,13 @@
 #include "glob.hh"
 #include "mtime.hh"
 #include "vray.hh"
+#include "string.hh"
+
 enum Commandcode {
        NOP,
        INTERPRET,
        TYPESET,
-       BREAK_PRE,BREAK_MIDDLE, BREAK_POST, BREAK_END
+       BREAK_PRE,BREAK_MIDDLE, BREAK_POST, BREAK_END
 };
 /// set a nonrythmical symbol
 struct Command {
@@ -16,6 +18,10 @@ struct Command {
     Mtime when;
     /// analogous to argv[]
     svec<String> args;
+    Command();
+    Command(Real w);
+    bool isbreak()const;
+    void print() const;
 };
 
 /**
diff --git a/scommands.hh b/scommands.hh
new file mode 100644 (file)
index 0000000..15c844c
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+  lilypond, (c) 1996 Han-Wen Nienhuys
+*/
+#ifndef SCOMMANDS_HH
+#define SCOMMANDS_HH
+
+#include "proto.hh"
+#include "command.hh"
+#include "vray.hh"
+#include "list.hh"
+
+struct Score_commands : public      PointerList<Command*> {
+    void add(Command);
+    void add_seq(svec<Command>);
+    void clean(Real last);
+    void set_breakable(Real when);
+    bool is_breakable(Real w);
+    PCursor<Command*> last_insertion(Real w);
+    PCursor<Command*> first(Real w);
+    void add_command_to_break(Command pre, Command mid,Command post);
+    void OK() const;
+    void print() const;
+};
+/** the list of commands in Score. Put in a separate class, since it
+  otherwise clutters the methods of Score.  */
+
+#endif
+