]> git.donarmstrong.com Git - lilypond.git/blob - command.cc
release: 0.0.5
[lilypond.git] / command.cc
1 #include "string.hh"
2 #include "debug.hh"
3 #include "command.hh"
4
5 bool
6 Command::isbreak()const
7 {
8     return (code >= BREAK_PRE && code <= BREAK_END);
9 }
10
11 Command::Command()
12 {
13     code = NOP;
14     when = -1;
15     priority=0;
16 }
17
18
19
20 Command::Command(Real w)
21 {
22     code = NOP;
23     when = w;
24     priority=0;
25 }
26
27 void
28 Command::print() const
29 {
30 #ifndef NPRINT
31     mtor << "command at " << when << ", code " << code << " prio " << priority;
32     if (args.sz()) {
33         mtor<< " args: ";
34         for (int i = 0; i<args.sz(); i++)
35             mtor << "`"<<args[i] <<"',";
36     }
37     mtor << "\n";
38 #endif
39 }