#include "translator.hh"
#include "debug.hh"
#include "translator-group.hh"
-#include "dictionary-iter.hh"
+
#include "rational.hh"
Translator::~Translator ()
status = ORPHAN;
daddy_trans_l_ =0;
output_def_l_ = s.output_def_l_;
- properties_dict_ = s.properties_dict_;
type_str_ = s.type_str_;
}
Moment
-Translator::now_moment () const
+Translator::now_mom () const
{
- return daddy_trans_l_->now_moment ();
+ return daddy_trans_l_->now_mom ();
}
DOUT << classname (this) << " {";
if (classname (this) != type_str_)
DOUT << "type = " << type_str_;
- for (Dictionary_iter<Scalar> i (properties_dict_); i.ok (); i++)
- {
- DOUT << i.key () << "=" << i.val () << '\n';
- }
do_print ();
DOUT << "}\n";
#endif
status = CREATION_INITED;
}
-Scalar
-Translator::get_property (String id)
-{
- if (properties_dict_.elem_b (id))
- {
- return properties_dict_[id];
- }
-
- if (daddy_trans_l_)
- return daddy_trans_l_->get_property (id);
-
- return "";
-}
-
-void
-Translator::set_property (String id, Scalar val)
-{
- properties_dict_[id] = val;
-}
Music_output_def *
{
return output_def_l_;
}
+
+Scalar
+Translator::get_property (String id, Translator_group **where_l) const
+{
+ return daddy_trans_l_->get_property (id, where_l);
+}
+