2 translator-def.hh -- declare Context_def
4 source file of the GNU LilyPond music typesetter
6 (c) 2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef TRANSLATOR_DEF_HH
11 #define TRANSLATOR_DEF_HH
13 #include "lily-proto.hh"
18 The definition of a interpretation context as given in the
19 input. The lists are stored in order of definition.
21 struct Context_def : public Input
25 these lists store the definition, in opposite order of entry
34 SCM translator_group_type_;
37 void add_context_mod (SCM);
38 SCM default_child_context_name ();
39 SCM get_context_name () const;
40 SCM get_accepted () const;
41 SCM get_property_ops () const { return property_ops_; }
42 SCM get_translator_names (SCM) const;
43 void set_acceptor (SCM accepts, bool add);
45 Link_array<Context_def> path_to_acceptable_translator (SCM type_string, Music_output_def* odef) const;
46 Translator_group * instantiate (Music_output_def*, SCM extra_ops);
48 SCM to_alist () const;
49 bool is_alias (SCM) const;
50 static SCM make_scm () ;
52 SCM clone_scm ()const;
53 void apply_default_property_operations (Translator_group*);
55 DECLARE_SMOBS (Context_def,foo);
57 Context_def (Context_def const&);
60 DECLARE_UNSMOB(Context_def,context_def);
63 #endif /* TRANSLATOR_DEF_HH */