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 s_p->errorlevel_i_ = errorlevel_i_;
41 Array<Staff*> parsed_staffs;
42 for (iter_top(staffs_,i); i.ok(); i++) {
43 Staff* staf_p=i->parse(s_p);
44 parsed_staffs.push(staf_p);
48 for (iter_top(staffs_,i); i.ok(); i++,j++) {
49 parsed_staffs[j]->do_commands(commands_, i->commands_);
54 Input_score::~Input_score()
57 //should fix paper/symtabs to allow this deletion.
61 Input_score::Input_score()
68 Input_score::print()const
71 mtor << "Input_score {\n";
72 for (iter_top(staffs_,i); i.ok(); i++) {