2 request.hh -- declare Request baseclasses.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
15 #include "virtual-methods.hh"
18 #include "direction.hh"
21 /** An atom of musical information. This is an abstract class for any
22 piece of music that does not contain other Music.
24 Hungarian postfix: req
27 class Request : public Music {
30 VIRTUAL_COPY_CONS(Music);
31 bool equal_b (Request*) const;
33 virtual bool do_equal_b (Request*) const;
34 virtual void do_print() const;
39 class G_script_req : public virtual Request
43 VIRTUAL_COPY_CONS(Music);
46 /** Put a script above or below this ``note'' or bar. eg upbow, downbow. Why
47 a request? These symbols may conflict with slurs and brackets, so
48 this also a request */
50 class Script_req : public virtual G_script_req {
52 General_script_def *scriptdef_p_;
54 bool do_equal_b (Request*) const;
57 VIRTUAL_COPY_CONS(Music);
58 virtual void do_print () const;
60 Script_req (Script_req const&);
65 Requests to start or stop something.
66 This type of request typically results in the creation of a #Spanner#
68 class Span_req : public virtual Request {
70 /// should the spanner start or stop, or is it unwanted?
75 virtual bool do_equal_b (Request*) const;
76 virtual void do_print() const;
77 VIRTUAL_COPY_CONS(Music);
81 Start a tie at this note, end it at the next
83 class Tie_req : public Request {
85 VIRTUAL_COPY_CONS(Music);
88 /** Start / stop a beam at this note */
89 class Beam_req : public Span_req {
91 VIRTUAL_COPY_CONS(Music);