Skip to content
Snippets Groups Projects
Commit 3b606b1c authored by ilor's avatar ilor
Browse files

wrap AnnotationView properly and wrap create_view

parent 37924220
Branches
No related tags found
No related merge requests found
...@@ -58,6 +58,10 @@ namespace Corpus2 { ...@@ -58,6 +58,10 @@ namespace Corpus2 {
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
std::string annotation_info() const; 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; using namespace std;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%include "std_string.i" %include "std_string.i"
%include "boost_shared_ptr.i" %include "boost_shared_ptr.i"
// %template(AnnotatedSentencePtr) boost::shared_ptr<AnnotatedSentence>; %template(AnnotationViewPtr) boost::shared_ptr<Corpus2::AnnotationView>;
%nodefaultctor Corpus2::TokenWriter; %nodefaultctor Corpus2::TokenWriter;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment