From 21132f8260bafe839834e59b3bba14328cc306c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl> Date: Fri, 6 May 2011 11:31:51 +0200 Subject: [PATCH] Wrapper for Corpus2::MissingAnnotationChannel --- swig/libcorpusannotatedsentence.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swig/libcorpusannotatedsentence.i b/swig/libcorpusannotatedsentence.i index 0f85282..f7c27b1 100644 --- a/swig/libcorpusannotatedsentence.i +++ b/swig/libcorpusannotatedsentence.i @@ -8,6 +8,7 @@ %include "libcorpustoken.i" %include "libcorpussentence.i" +%include "libcorpus2exception.i" %include "libcorpusannotationchannel.i" %include "boost_shared_ptr.i" @@ -21,6 +22,12 @@ %template(AnnotatedSentencePtr) boost::shared_ptr<Corpus2::AnnotatedSentence>; namespace Corpus2 { + class MissingAnnotationChannel : public Corpus2Error { + public: + MissingAnnotationChannel(const std::string& name); + ~MissingAnnotationChannel() throw(); + }; // MissingAnnotationChannel + class AnnotatedSentence : public Corpus2::Sentence { public: typedef std::map<std::string, AnnotationChannel> chan_map_t; -- GitLab