lilypond-1.1.31
[lilypond.git] / hdr / inputcommands.hh
blob94d94c42021d367422934169239c612f09ca8b7b
1 /*
2 inputcommands.hh -- part of LilyPond
4 (c) 1996,97 Han-Wen Nienhuys
5 */
7 #ifndef INPUTCOMMANDS_HH
8 #define INPUTCOMMANDS_HH
10 #include "proto.hh"
11 #include "plist.hh"
12 #include "real.hh"
13 #include "timedescription.hh"
15 struct Commands_at : public IPointerList<Input_command*> {
16 Time_description tdescription_;
18 /* *************** */
20 Moment when();
21 void parse(Staff_commands_at*);
22 void print() const;
23 Moment barleft();
24 void add(Input_command*);
25 void setpartial(Moment);
26 Commands_at(const Commands_at&);
27 Commands_at(Moment, Commands_at*prev);
30 struct Input_cursor : public PCursor<Commands_at*>
32 /* *************** */
33 Input_cursor(PCursor<Commands_at*>);
34 Moment when()const;
35 void find_moment(Moment w);
36 void prev() { operator --(0); }
37 void next() { operator ++(0); }
40 /// the list of commands in Score
41 struct Input_commands : public IPointerList<Commands_at*> {
42 Input_cursor ptr;
44 /* *************** */
46 void find_moment(Moment);
47 void add(Input_command c,Assoc<String,Moment> &marks_assoc_r);
48 void do_skip(int bars, Moment wholes);
50 Input_commands();
51 Input_commands(Input_commands const&);
53 void reset();
54 void print()const;
55 void parse(Staff *) const;
58 #endif // INPUTCOMMANDS_HH