From 91753351b2693684c9265eabaa6447994c176e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl> Date: Wed, 4 May 2011 10:49:28 +0200 Subject: [PATCH] Updated wrapper for value --- swig/libcclvalue.i | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/swig/libcclvalue.i b/swig/libcclvalue.i index 6246221..4a62b21 100644 --- a/swig/libcclvalue.i +++ b/swig/libcclvalue.i @@ -7,25 +7,32 @@ %} %include "std_string.i" -%include "boost_shared_ptr.i" +%include "libcorpus/libcorpustagset.i" + +%nodefaultctor Wccl::Value; namespace Wccl { class Value { public: - static const char* type_name; - + static const char type_name[56]; virtual const char* get_type_name() const; + + /* --------------------------------------------------------------------- */ + virtual ~Value(); + /* --------------------------------------------------------------------- */ + virtual std::string make_var_repr(const std::string&) const = 0; + + /* --------------------------------------------------------------------- */ + virtual std::string to_string(const Corpus2::Tagset& /*tagset*/) const; virtual std::string to_raw_string() const = 0; }; -} -// %template(BoolSharedPtr) boost::shared_ptr<Wccl::Value>; +} -using namespace boost; using namespace std; using namespace Wccl; -- GitLab