fix problems instantiating mussa.GlSequence
[mussa.git] / py / glsequence.cpp
index 811e0dce7245770ae57c2c1e495aab43f9e5056c..f40efa31297564b74363608bf8e63f45c2d07a64 100644 (file)
@@ -1,5 +1,6 @@
 #include <boost/python.hpp>
 using namespace boost::python;
+#include <boost/shared_ptr.hpp>
 
 #include "alg/annotation_colors.hpp"
 #include "alg/glsequence.hpp"
@@ -7,8 +8,11 @@ using namespace boost::python;
 
 void export_glsequence()
 {
-  /*
-  class_<GlSequence>("GlSequence", init<Sequence &, AnnotationColors &>())
+  class_<GlSequence>("GlSequence", 
+      init<
+        boost::shared_ptr<Sequence>, 
+        boost::shared_ptr<AnnotationColors> 
+      >())
     .def(init<GlSequence &>())
     .def("draw", &GlSequence::draw)
     .def("sequence", &GlSequence::sequence, 
@@ -17,5 +21,4 @@ void export_glsequence()
     .add_property("y", &GlSequence::y, &GlSequence::setY)
     .add_property("length", &GlSequence::length)
   ;
-  */
 }