lilypond-0.1.14
[lilypond.git] / src / command.cc
blob7ddebc6f820210661aa0573532379603df54ee43
1 #include "string.hh"
2 #include "debug.hh"
3 #include "command.hh"
5 bool
6 Command::isbreak()const
8 return (code >= BREAK_PRE && code <= BREAK_END);
11 Command::Command()
13 code = NOP;
14 priority=0;
17 void
18 Command::print() const
20 #ifndef NPRINT
21 mtor << "Command " << "code " << code << " prio " << priority;
22 if ( isbreak())
23 mtor << "(break separator)";
24 if (args.size()) {
25 mtor<< " args: ";
26 for (int i = 0; i<args.size(); i++)
27 mtor << "`"<<args[i] <<"',";
29 mtor << "\n";
30 #endif