#include "callback.hh"
#include "input.hh" // for error reporting
#include "smobs.hh"
+#include "stream-event.hh"
#include "std-vector.hh"
#include "protected-scm.hh"
/* end #define */
#define TRANSLATOR_INHERIT(BASE) \
- using BASE::method_finder; \
- using BASE::ack_finder;
+ using BASE::method_finder
#define DECLARE_TRANSLATOR_CALLBACKS(NAME) \
template <void (NAME::*mf)()> \
{ \
return Callback_wrapper::make_smob<trampoline<NAME, mf> > (); \
} \
- template <void (NAME::*callback)(Grob_info)> \
- static SCM ack_finder () { \
- return Callback2_wrapper::make_smob<ack_trampoline <NAME, callback> > (); \
+ template <void (NAME::*mf)(Grob_info)> \
+ static SCM method_finder () { \
+ return Callback2_wrapper::make_smob<trampoline <NAME, mf> > (); \
} \
/* end #define */
return static_get_acknowledger (sym, start_end); \
} \
public: \
- NAME (); \
+ NAME (Context *); \
static void boot (); \
virtual SCM static_translator_description () const; \
virtual SCM translator_description () const; \
SCM mark_smob () const;
static const char * const type_p_name_;
virtual ~Translator ();
-private:
- void init ();
-public:
Context *context () const { return daddy_context_; }
- Translator ();
+ Translator (Context *);
Translator (Translator const &);
SCM internal_get_property (SCM symbol) const;
static SCM
method_finder () { return SCM_UNDEFINED; }
- // Overriden in Engraver. Don't instantiate.
- template <class T, void (T::*)(Grob_info)>
- static SCM ack_trampoline (SCM, SCM, SCM);
-
- // Overriden in Engraver. Don't instantiate.
- template <void (Translator::*)(Grob_info)>
- static SCM ack_finder ();
-
virtual void derived_mark () const;
static SCM event_class_symbol (const char *ev_class);
SCM static_translator_description (const char *grobs,