+#include "translator.icc"
+
+/*
+ generate bars. Either user ("|:"), or default (new measure)
+*/
+class Bar_engraver : public Engraver
+{
+public:
+ TRANSLATOR_DECLARATIONS (Bar_engraver);
+ void request_bar (string type_string);
+
+protected:
+ void stop_translation_timestep ();
+ void process_acknowledged ();
+
+ DECLARE_END_ACKNOWLEDGER (spanner);
+
+private:
+ void create_bar ();
+
+ Item *bar_;
+ vector<Spanner*> spanners_;
+};
+
+Bar_engraver::Bar_engraver ()