]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/translator.cc
release: 1.3.6
[lilypond.git] / lily / translator.cc
index 2e20760894acadee45d66b2d6966d50e5c882bc3..515a85af9bbba3ea26dabcee6468d4fd5d9474f6 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #include "debug.hh"
 #include "translator-group.hh"
 
-#include "rational.hh"
+#include "moment.hh"
+
+char const*
+Translator::name() const
+{
+  return classname(this);
+}
 
 Translator::~Translator ()
 {
@@ -72,11 +78,11 @@ void
 Translator::print () const
 {
 #ifndef NPRINT
-  DOUT << classname (this) << " {";
+  DEBUG_OUT << classname (this) << " {";
   if (classname (this) != type_str_)
-    DOUT << "type = " << type_str_;
+    DEBUG_OUT << "type = " << type_str_;
   do_print ();
-  DOUT << "}\n";
+  DEBUG_OUT << "}\n";
 #endif
 }
 
@@ -157,9 +163,28 @@ Translator::output_def_l () const
   return output_def_l_;
 }
 
-Scalar
+SCM
 Translator::get_property (String id, Translator_group **where_l) const
 {
-  return daddy_trans_l_->get_property (id, where_l);
+  return daddy_trans_l_->get_property (ly_symbol2scm (id.ch_C()), where_l);
 }
 
+SCM
+Translator::get_property (SCM sym,
+                         Translator_group **where_l) const
+{
+  return daddy_trans_l_->get_property (sym, where_l);
+}
+
+
+
+void
+Translator:: do_pre_move_processing(){}
+void
+Translator::do_post_move_processing(){}
+void
+Translator::do_process_requests () {}
+void
+Translator::do_creation_processing() {}
+void
+Translator::do_removal_processing(){}