]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/context-selector.hh
*** empty log message ***
[lilypond.git] / lily / include / context-selector.hh
1 /*
2   context-selector.hh -- declare Context_selector
3
4   source file of the LilyPond music typesetter
5   
6   (c) 2004 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8 #ifndef CONTEXT_SELECTOR_HH
9 #define CONTEXT_SELECTOR_HH
10
11 #include "lily-guile.hh"
12 #include "lily-proto.hh"
13
14 /**
15  * Context_selector:
16  * @register_context: register new #CONTEXT.
17  #
18  **/
19 class Context_selector
20 {
21   static Scheme_hash_table *contexts_;
22
23 public:
24   static void register_context (Context *context);
25   static SCM identify_context (Context *context, int count);
26   static SCM identify_context (Context *context);
27   static Context *retrieve_context (SCM context_id);
28   static void store_context (SCM context_id, Context *context);
29   static void set_tweaks (SCM tweaks);
30 };
31
32 #endif /* CONTEXT_SELECTOR_HH */
33