source file of the GNU LilyPond music typesetter
- (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#ifndef CONTEXT_HH
int iterator_count_;
bool init_;
- map<String, int> grob_counts_;
- map<String, int> context_counts_;
+ map<std::string, int> grob_counts_;
+ map<std::string, int> context_counts_;
protected:
Object_key const *key_;
SCM accepts_list_;
SCM aliases_;
Translator_group *implementation_;
- String id_string_;
+ std::string id_string_;
friend class Context_def;
void clear_key_disambiguations ();
public:
- Object_key const *get_key () const;
- Object_key const *get_grob_key (String);
- Object_key const *get_context_key (String, String);
+ Object_key const *key () const { return key_; }
+ Object_key const *create_grob_key (std::string);
+ Object_key const *get_grob_key (std::string);
+ Object_key const *get_context_key (std::string, std::string);
- Context *create_context (Context_def *, String, SCM);
- String id_string () const { return id_string_; }
+ Context *create_context (Context_def *, std::string, SCM);
+ std::string id_string () const { return id_string_; }
SCM children_contexts () const { return context_list_; }
SCM default_child_context_name () const;
Context *remove_context (Context *trans);
void check_removal ();
- String context_name () const;
+ std::string context_name () const;
SCM context_name_symbol () const;
Global_context *get_global_context () const;
bool try_music (Music *);
Context *find_create_context (SCM context_name,
- String id, SCM ops);
+ std::string id, SCM ops);
Context *create_unique_context (SCM context_name,
SCM ops);
- Link_array<Context> path_to_acceptable_context (SCM alias,
+ Link_array__Context_ path_to_acceptable_context (SCM alias,
Output_def *) const;
};
SCM context_property, SCM grob_property_path, SCM val);
SCM updated_grob_properties (Context *tg, SCM sym);
Context *find_context_below (Context *where,
- SCM type_sym, String id);
+ SCM type_sym, std::string id);
bool melisma_busy (Context *);
Context *get_voice_to_lyrics (Context *lyrics);
Moment measure_position (Context const *context);
Rational measure_length (Context const *context);
+void set_context_property_on_children (Context *trans, SCM sym, SCM val);
#endif /* CONTEXT_HH */