Skip to content
Snippets Groups Projects
Commit 1bd30b0e authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

(swig) Updated wrapper for Wccl::AnnotationMatch

parent b3fc3f07
Branches
No related merge requests found
...@@ -6,32 +6,32 @@ ...@@ -6,32 +6,32 @@
#include <libwccl/values/annotationmatch.h> #include <libwccl/values/annotationmatch.h>
%} %}
%include "std_string.i"
%include "libcclposition.i"
%include "libcclmatchdata.i" %include "libcclmatchdata.i"
%include "libcorpus/libcorpusannotatedsentence.i" %include "libcorpus/libcorpusannotatedsentence.i"
%include "std_string.i"
%nodefaultctor Wccl::AnnotationMatch; %nodefaultctor Wccl::AnnotationMatch;
namespace Wccl { namespace Wccl {
class AnnotationMatch : public MatchData { class AnnotationMatch : public MatchData {
public: public:
explicit AnnotationMatch(Position position, const std::string channel);
explicit AnnotationMatch(int pos, const std::string channel); explicit AnnotationMatch(int pos, const std::string channel);
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
bool empty() const; bool empty() const;
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; int first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const;
Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const; int last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const;
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
std::string to_raw_string() const; std::string to_raw_string() const;
}; };
} }
using namespace std; using namespace boost;
using namespace Wccl; using namespace Wccl;
using namespace std;
#endif /* SWIG_LIBWCCL_ANNOTATIONMATCH_I */ #endif /* SWIG_LIBWCCL_ANNOTATIONMATCH_I */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment