Skip to content
Snippets Groups Projects
Select Git revision
  • f15b6a32f63b92f5617954da04b460e572cbda05
  • master default protected
  • fix-words-ann
  • wccl-rules-migration
  • develop
5 results

libcclvalue.i

Blame
  • user avatar
    Paweł Kędzia authored
    91753351
    History
    libcclvalue.i 893 B
    #ifndef SWIG_LIBWCCL_VALUE_I
    #define SWIG_LIBWCCL_VALUE_I
    
    %module libcclvalue
    %{
      #include <libwccl/values/value.h>
    %}
    
    %include "std_string.i"
    %include "libcorpus/libcorpustagset.i"
    
    %nodefaultctor Wccl::Value;
    
    namespace Wccl {
      class Value {
      public:
        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;
      };
    
    }
    
    using namespace std;
    using namespace Wccl;
    
    #endif /* SWIG_LIBWCCL_VALUE_I */