]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.9
authorfred <fred>
Tue, 29 Oct 1996 00:30:37 +0000 (00:30 +0000)
committerfred <fred>
Tue, 29 Oct 1996 00:30:37 +0000 (00:30 +0000)
src/command.cc [new file with mode: 0644]

diff --git a/src/command.cc b/src/command.cc
new file mode 100644 (file)
index 0000000..23edf1e
--- /dev/null
@@ -0,0 +1,39 @@
+#include "string.hh"
+#include "debug.hh"
+#include "command.hh"
+
+bool
+Command::isbreak()const
+{
+    return (code >= BREAK_PRE && code <= BREAK_END);
+}
+
+Command::Command()
+{
+    code = NOP;
+    when = -1;
+    priority=0;
+}
+
+
+
+Command::Command(Real w)
+{
+    code = NOP;
+    when = w;
+    priority=0;
+}
+
+void
+Command::print() const
+{
+#ifndef NPRINT
+    mtor << "command at " << when << ", code " << code << " prio " << priority;
+    if (args.sz()) {
+       mtor<< " args: ";
+       for (int i = 0; i<args.sz(); i++)
+           mtor << "`"<<args[i] <<"',";
+    }
+    mtor << "\n";
+#endif
+}