From 3b606b1c3a1e5ca3a3ec07cfb513eda4d9f48456 Mon Sep 17 00:00:00 2001 From: ilor <kailoran@gmail.com> Date: Fri, 3 Jun 2011 14:40:31 +0200 Subject: [PATCH] wrap AnnotationView properly and wrap create_view --- swig/annotatedsentence.i | 4 ++++ swig/annotationview.i | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/swig/annotatedsentence.i b/swig/annotatedsentence.i index ae04681..a00344c 100644 --- a/swig/annotatedsentence.i +++ b/swig/annotatedsentence.i @@ -58,6 +58,10 @@ namespace Corpus2 { /* --------------------------------------------------------------------- */ std::string annotation_info() const; }; + +boost::shared_ptr<AnnotationView> create_view( + const boost::shared_ptr<AnnotatedSentence>& s, + const std::string& ann_name); } using namespace std; diff --git a/swig/annotationview.i b/swig/annotationview.i index c909f4b..10fbb1c 100644 --- a/swig/annotationview.i +++ b/swig/annotationview.i @@ -13,7 +13,7 @@ %include "std_string.i" %include "boost_shared_ptr.i" -// %template(AnnotatedSentencePtr) boost::shared_ptr<AnnotatedSentence>; +%template(AnnotationViewPtr) boost::shared_ptr<Corpus2::AnnotationView>; %nodefaultctor Corpus2::TokenWriter; -- GitLab