2 #include "inputcommand.hh"
3 #include "inputscore.hh"
4 #include "inputstaff.hh"
9 Input_score::add(svec<Input_command*> &s)
11 commands_.bottom().add(get_reset_command());
12 for (int i=0; i < s.sz(); i++)
13 commands_.bottom().add(s[i]);
17 Input_score::add(Input_staff*s)
19 staffs_.bottom().add(s);
23 Input_score::set(Paperdef*p)
32 Paperdef* p=new Paperdef(*paper_);
33 Score *s = new Score(p);
35 for (PCursor<Input_staff*> i(staffs_); i.ok(); i++) {
36 Staff* staf=i->parse(commands_);
42 Input_score::~Input_score()
44 // should fix paper/symtabs to allow this deletion.
48 Input_score::Input_score()
54 Input_score::print()const
56 mtor << "Input_score {\n";
57 for (PCursor<Input_staff*> i(staffs_); i.ok(); i++) {