]> git.donarmstrong.com Git - lilypond.git/blob - src/command.cc
release: 0.0.18
[lilypond.git] / src / 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     priority=0;
15 }
16
17 void
18 Command::print() const
19 {
20 #ifndef NPRINT
21     mtor << "Command " << "code " << code << " prio " << priority;
22     if ( isbreak())
23         mtor << "(break separator)";
24     if (args.sz()) {
25         mtor<< " args: ";
26         for (int i = 0; i<args.sz(); i++)
27             mtor << "`"<<args[i] <<"',";
28     }
29     mtor << "\n";
30 #endif
31 }