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

Wrapper for PwrNlp::PwrNlpError

parent 01f9e76f
Branches
No related merge requests found
...@@ -13,7 +13,8 @@ ANTLRLIB=/usr/lib/libantlr-pic.a ...@@ -13,7 +13,8 @@ ANTLRLIB=/usr/lib/libantlr-pic.a
CPPFLAGS=-fPIC -O2 CPPFLAGS=-fPIC -O2
CBIN=libcorpustag.o \ CBIN=libpwrnlperror.o \
libcorpustag.o \
libcorpustagset.o \ libcorpustagset.o \
libcorpustagsetmanager.o \ libcorpustagsetmanager.o \
libcorpuslexeme.o \ libcorpuslexeme.o \
...@@ -27,7 +28,8 @@ CBIN=libcorpustag.o \ ...@@ -27,7 +28,8 @@ CBIN=libcorpustag.o \
libcorpusannotatedsentence.o \ libcorpusannotatedsentence.o \
libcorpusannotationview.o libcorpusannotationview.o
CBINOUT=_boost_shared_ptr.so \ CBINOUT=_libpwrnlperror.so \
_boost_shared_ptr.so \
_libcorpustag.so \ _libcorpustag.so \
_libcorpustagset.so \ _libcorpustagset.so \
_libcorpustagsetmanager.so \ _libcorpustagsetmanager.so \
...@@ -42,7 +44,8 @@ CBINOUT=_boost_shared_ptr.so \ ...@@ -42,7 +44,8 @@ CBINOUT=_boost_shared_ptr.so \
_libcorpusannotatedsentence.so \ _libcorpusannotatedsentence.so \
_libcorpusannotationview.so _libcorpusannotationview.so
CWRAP=boost_shared_ptr_wrap.cxx \ CWRAP=libpwrnlperror_wrap.cxx \
boost_shared_ptr_wrap.cxx \
libcorpustag_wrap.cxx \ libcorpustag_wrap.cxx \
libcorpustagset_wrap.cxx \ libcorpustagset_wrap.cxx \
libcorpustagsetmanager_wrap.cxx \ libcorpustagsetmanager_wrap.cxx \
...@@ -57,7 +60,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \ ...@@ -57,7 +60,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \
libcorpusannotatedsentence_wrap.cxx \ libcorpusannotatedsentence_wrap.cxx \
libcorpusannotationview_wrap.cxx libcorpusannotationview_wrap.cxx
CWRAPBIN=boost_shared_ptr_wrap.o \ CWRAPBIN=libpwrnlperror_wrap.o \
boost_shared_ptr_wrap.o \
libcorpustag_wrap.o \ libcorpustag_wrap.o \
libcorpustagset_wrap.o \ libcorpustagset_wrap.o \
libcorpustagsetmanager_wrap.o \ libcorpustagsetmanager_wrap.o \
...@@ -72,7 +76,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \ ...@@ -72,7 +76,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \
libcorpusannotatedsentence_wrap.o \ libcorpusannotatedsentence_wrap.o \
libcorpusannotationview_wrap.o libcorpusannotationview_wrap.o
PYMODULES=boost_shared_ptr.py \ PYMODULES=libpwrnlperror.py \
boost_shared_ptr.py \
libcorpustag.py \ libcorpustag.py \
libcorpustagset.py \ libcorpustagset.py \
libcorpustagsetmanager.py \ libcorpustagsetmanager.py \
...@@ -87,7 +92,8 @@ PYMODULES=boost_shared_ptr.py \ ...@@ -87,7 +92,8 @@ PYMODULES=boost_shared_ptr.py \
libcorpusannotatedsentence.py \ libcorpusannotatedsentence.py \
libcorpusannotationview.py libcorpusannotationview.py
PYCBIN=boost_shared_ptr.pyc \ PYCBIN=libpwrnlperror.pyc \
boost_shared_ptr.pyc \
libcorpustag.pyc \ libcorpustag.pyc \
libcorpustagset.pyc \ libcorpustagset.pyc \
libcorpustagsetmanager.pyc \ libcorpustagsetmanager.pyc \
...@@ -116,6 +122,14 @@ boost_shared_ptr.o: ...@@ -116,6 +122,14 @@ boost_shared_ptr.o:
$(CPP) -c boost_shared_ptr_wrap.cxx -I$(PYTHONDIR) $(CPPFLAGS) $(CPP) -c boost_shared_ptr_wrap.cxx -I$(PYTHONDIR) $(CPPFLAGS)
$(CPP) -shared boost_shared_ptr_wrap.o -o _boost_shared_ptr.so $(CPP) -shared boost_shared_ptr_wrap.o -o _boost_shared_ptr.so
# -----------------------------------------------------------------------------
# PwrNlpError wprapper
# -----------------------------------------------------------------------------
# PwrNlpError
libpwrnlperror.o:
$(SWIG) $(SWIGOPTS_LANG) libpwrnlperror.i
$(CPP) -c libpwrnlperror_wrap.cxx -I$(PYTHONDIR) $(CPPFLAGS)
$(CPP) -shared libpwrnlperror_wrap.o -o _libpwrnlperror.so
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Corpus2 Wrappers # Corpus2 Wrappers
......
#ifndef SWIG_LIBPWRNLP_PWRNLPERROR_I
#define SWIG_LIBPWRNLP_PWRNLPERROR_I
%module libpwrnlperror
%{
#include <libpwrutils/exception.h>
%}
%include "std_except.i"
%nodefaultctor PwrNlp::PwrNlpError;
namespace PwrNlp {
class PwrNlpError : public std::runtime_error {
public:
PwrNlpError(const std::string &what);
/* --------------------------------------------------------------------- */
~PwrNlpError() throw();
virtual std::string info() const;
virtual std::string scope() const;
};
}
using namespace std;
using namespace PwrNlp;
#endif /* SWIG_LIBPWRNLP_PWRNLPERROR_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