]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/object-key-undumper.hh
* The grand 2005-2006 replace.
[lilypond.git] / lily / include / object-key-undumper.hh
1 /*
2   object-key-undumper.hh -- declare Object_key_undumper
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef OBJECT_KEY_UNDUMPER_HH
10 #define OBJECT_KEY_UNDUMPER_HH
11
12 #include <map>
13 using namespace std;
14
15 #include "object-key.hh"
16
17 typedef map<int, Object_key const *> Int_to_key_map;
18
19 struct Object_key_undumper
20 {
21   DECLARE_SMOBS (Object_key_undumper,);
22   Int_to_key_map keys_;
23 public:
24   void parse_contents (SCM);
25   Object_key_undumper ();
26   Object_key const *get_key (int k);
27 };
28 DECLARE_UNSMOB (Object_key_undumper, key_undumper);
29
30 #endif