
/*
  engraver-group-engraver.hh -- declare Engraver_group_engraver

  source file of the GNU LilyPond music typesetter

  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/

#ifndef ENGRAVERGROUP_HH
#define ENGRAVERGROUP_HH

#include "engraver.hh"
#include "translator-group.hh"

class Engraver_group_engraver : public virtual Translator_group
{
protected:
  Array<Grob_info> announce_infos_;

public:
  VIRTUAL_COPY_CONSTRUCTOR ( Translator_group, Engraver_group_engraver);
  Engraver_group_engraver ();

  virtual void initialize ();
  PRECOMPUTED_VIRTUAL void do_announces ();
  virtual void announce_grob (Grob_info);
  int pending_grob_count () const;
private:
  virtual void acknowledge_grobs ();
};

typedef void (Engraver:: *Engraver_method) (void);

void engraver_each (SCM list, Engraver_method method);

#endif // ENGRAVERGROUP_HH


