summaryrefslogtreecommitdiff
path: root/lily/include/staff-regs.hh
blob: 88c41f89991dbb12d91adb46d05eea2299df495d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
  staff-regs.hh -- declare Staff_registers

  source file of the LilyPond music typesetter

  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/


#ifndef STAFF_REGS_HH
#define STAFF_REGS_HH

#include "register-group.hh"

/**
  Registers which manage a Staff (one 5-line linestaff)
 */
class Staff_registers : public Register_group_register {
    int c0_position_i_;    
    Input_register const *ireg_C_;
    int base_position_i_;
    Array<Voice_group_registers*> group_l_arr_;
    Staff_symbol * staff_sym_l_;
protected:
    virtual bool try_request(Request * r);
    virtual Staff_info get_staff_info();
    virtual bool acceptable_request_b(Request*) const ;
    virtual void acknowledge_element(Staff_elem_info);
public:
    
    /* *************** */
    NAME_MEMBERS(Staff_registers);
    void change_group(Group_change_req * greq_l,
		      Voice_registers *voice_regs_l,
		      Voice_group_registers * old_group);
    Voice_group_registers * get_group(String id);
    void terminate_register(Request_register * reg);
    Staff_registers(Input_register const*);
};

#endif // STAFF_REGS_HH