]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/symtable.hh
release: 1.1.18
[lilypond.git] / lily / include / symtable.hh
1 /*
2   symtable.hh -- declare Symtable, Symtables
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef SYMTABLE_HH
11 #define SYMTABLE_HH
12
13 #include "dictionary.hh"
14 #include "string.hh"
15 #include "atom.hh"
16
17 struct  Symtable : public Dictionary<Atom> {
18   String id_str;
19     
20   Atom lookup (String) const;
21   void print() const;
22 };
23
24
25 struct Symtables : private Dictionary<Symtable*>
26 {
27   Symtables();
28   Symtables (Symtables const&);
29   ~Symtables();
30
31   Symtable* operator()(String s);
32   void add (String, Symtable*);
33   void print() const;
34
35   String font_name_;
36 };
37
38
39 #endif
40