]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lilypond-key.hh
fix typos.
[lilypond.git] / lily / include / lilypond-key.hh
1 /*
2   lilypond-key.hh -- declare Lilypond_{grob,context}_key
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
7
8 */
9
10 #ifndef LILYPOND_KEY_HH
11 #define LILYPOND_KEY_HH
12
13 #include "object-key.hh"
14 #include "lily-proto.hh"
15 #include "moment.hh"
16 #include "string.hh"
17
18 class Lilypond_grob_key : public Object_key
19 {
20   Object_key const *context_;
21   Moment creation_moment_;
22   String grob_name_;
23   int disambiguation_count_;
24
25 public:
26   Lilypond_grob_key (Object_key const *context,
27                      Moment start,
28                      String name, int);
29
30   static Object_key *from_scheme (SCM);
31 protected:
32   virtual int get_type () const;
33   virtual void derived_mark () const; 
34   virtual int do_compare (Object_key const* a) const;
35   virtual SCM as_scheme () const;
36 };
37
38 class Lilypond_context_key : public Object_key
39 {
40   Object_key const *parent_context_;
41   Moment start_moment_;
42   String context_name_;
43   String id_;
44   int disambiguation_count_;
45
46 public:
47   Lilypond_context_key (Object_key const * parent,
48                         Moment start,
49                         String type,
50                         String id,
51                         int count);
52
53   static Object_key *from_scheme (SCM);
54 protected:
55   virtual int get_type () const;
56   virtual int do_compare (Object_key const* a) const;
57   virtual void derived_mark () const; 
58   virtual SCM as_scheme () const;
59 };
60
61 class Lilypond_general_key : public Object_key
62 {
63   Object_key const *parent_;
64   String name_;
65   int disambiguation_count_;
66 public:
67   Lilypond_general_key (Object_key const *parent, String name,
68                         int count);
69
70   static Object_key *from_scheme (SCM);
71 protected:
72   virtual int get_type () const;
73   virtual int do_compare (Object_key const* a) const;
74   virtual void derived_mark () const; 
75   virtual SCM as_scheme () const;
76 };
77
78 #endif /* LILYPOND_KEY_HH */
79