From a1b3d9e37a328a4d7353d9314b5c3e6606977e4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl>
Date: Wed, 11 May 2011 12:15:41 +0200
Subject: [PATCH] (swig) Added TagRule and TagRuleSequence to wccl library

---
 swig/libccltagrule.i         | 4 ++--
 swig/libccltagrulesequence.i | 8 ++++----
 swig/wccl.i                  | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/swig/libccltagrule.i b/swig/libccltagrule.i
index d9db409..b694be1 100644
--- a/swig/libccltagrule.i
+++ b/swig/libccltagrule.i
@@ -49,8 +49,8 @@ namespace Wccl {
     TagRule clone_clean() const;
     /* --------------------------------------------------------------------- */
 
-    boost::shared_ptr<TagRule> clone_ptr() const;
-    boost::shared_ptr<TagRule> clone_clean_ptr() const;
+    shared_ptr<TagRule> clone_ptr() const;
+    shared_ptr<TagRule> clone_clean_ptr() const;
     /* --------------------------------------------------------------------- */
 
     %rename(OperatorEqTagRule) *::operator=(const TagRule& other);
diff --git a/swig/libccltagrulesequence.i b/swig/libccltagrulesequence.i
index 2c5bde4..f85f04f 100644
--- a/swig/libccltagrulesequence.i
+++ b/swig/libccltagrulesequence.i
@@ -27,14 +27,14 @@ namespace Wccl {
     /* --------------------------------------------------------------------- */
 
     %rename(OpFunTagRuleSequence) operator()(
-      const boost::shared_ptr<Corpus2::Sentence>& sentence
+      const shared_ptr<Corpus2::Sentence>& sentence
     );
-    Bool operator()(const boost::shared_ptr<Corpus2::Sentence>& sentence);
+    Bool operator()(const shared_ptr<Corpus2::Sentence>& sentence);
 
     /* --------------------------------------------------------------------- */
 
-    Bool execute_once(const boost::shared_ptr<Corpus2::Sentence>& sentence);
-    int execute_until_done(const boost::shared_ptr<Corpus2::Sentence>& sentence, int max_iter = 1000);
+    Bool execute_once(const shared_ptr<Corpus2::Sentence>& sentence);
+    int execute_until_done(const shared_ptr<Corpus2::Sentence>& sentence, int max_iter = 1000);
 
     std::string to_string(const Corpus2::Tagset& tagset) const;
   };
diff --git a/swig/wccl.i b/swig/wccl.i
index e5bbb2a..59505d8 100644
--- a/swig/wccl.i
+++ b/swig/wccl.i
@@ -22,8 +22,8 @@
 %include "libcclsentencecontext.i"
 %include "libcclstrset.i"
 %include "libccltagaction.i"
-// %include "libccltagrule.i"
-// %include "libccltagrulesequence.i"
+%include "libccltagrule.i"
+%include "libccltagrulesequence.i"
 %include "libccltokenmatch.i"
 %include "libccltset.i"
 %include "libcclvalue.i"
-- 
GitLab