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)
30 Input_score::Input_score(Input_score const&)
38 Paperdef* paper_p=new Paperdef(*paper_);
39 Score *s_p = new Score(paper_p);
40 s_p->defined_ch_c_l_= defined_ch_c_l_;
41 s_p->errorlevel_i_ = errorlevel_i_;
42 Array<Staff*> parsed_staffs;
43 for (iter_top(staffs_,i); i.ok(); i++) {
44 Staff* staf_p=i->parse(s_p);
45 parsed_staffs.push(staf_p);
49 for (iter_top(staffs_,i); i.ok(); i++,j++) {
50 parsed_staffs[j]->do_commands(commands_, i->commands_);
55 Input_score::~Input_score()
60 Input_score::Input_score()
68 Input_score::print()const
71 mtor << "Input_score {\n";
72 for (iter_top(staffs_,i); i.ok(); i++) {