2 #include "inputcommand.hh"
3 #include "inputscore.hh"
4 #include "inputstaff.hh"
10 Input_score::add(Array<Input_command*> &s)
12 commands_.bottom().add(get_reset_command());
13 for (int i=0; i < s.size(); i++)
14 commands_.bottom().add(s[i]);
18 Input_score::add(Input_staff*s)
20 staffs_.bottom().add(s);
24 Input_score::set(Paperdef*p)
29 Input_score::Input_score(Input_score const&)
37 Paperdef* paper_p=new Paperdef(*paper_);
38 Score *s_p = new Score(paper_p);
39 s_p->define_spot_str_ = define_spot_str_;
40 Array<Staff*> parsed_staffs;
41 for (iter_top(staffs_,i); i.ok(); i++) {
42 Staff* staf_p=i->parse(s_p);
43 parsed_staffs.push(staf_p);
47 for (iter_top(staffs_,i); i.ok(); i++,j++) {
48 parsed_staffs[j]->do_commands(commands_, i->commands_);
53 Input_score::~Input_score()
56 //should fix paper/symtabs to allow this deletion.
60 Input_score::Input_score()
66 Input_score::print()const
69 mtor << "Input_score {\n";
70 for (iter_top(staffs_,i); i.ok(); i++) {