]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/object-key-undumper.hh
95af156eec289cfa5241425ed090948046805545
[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--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
7
8 */
9
10 #ifndef OBJECT_KEY_UNDUMPER_HH
11 #define OBJECT_KEY_UNDUMPER_HH
12
13 #include <map>
14 #include "object-key.hh" 
15
16 typedef std::map<int, Object_key const *> Int_to_key_map;
17
18 struct Object_key_undumper
19 {
20   DECLARE_SMOBS(Object_key_undumper, );
21   Int_to_key_map keys_;
22 public:
23   void parse_contents (SCM);
24   Object_key_undumper ();
25   Object_key const *get_key (int k);
26 };
27 DECLARE_UNSMOB(Object_key_undumper, key_undumper);
28
29 #endif