Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
1ba079a3
There was an error fetching the commit references. Please try again later.
Commit
1ba079a3
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Wprapper for Corpus2::AnnotationView
parent
a3e846a8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swig/Makefile
+19
-6
19 additions, 6 deletions
swig/Makefile
swig/libcorpusannotationview.i
+43
-0
43 additions, 0 deletions
swig/libcorpusannotationview.i
with
62 additions
and
6 deletions
swig/Makefile
+
19
−
6
View file @
1ba079a3
...
@@ -24,7 +24,8 @@ CBIN=libcorpustag.o \
...
@@ -24,7 +24,8 @@ CBIN=libcorpustag.o \
libcorpustokenreader.o
\
libcorpustokenreader.o
\
libcorpusiob.o
\
libcorpusiob.o
\
libcorpusannotationchannel.o
\
libcorpusannotationchannel.o
\
libcorpusannotatedsentence.o
libcorpusannotatedsentence.o
\
libcorpusannotationview.o
CBINOUT
=
_boost_shared_ptr.so
\
CBINOUT
=
_boost_shared_ptr.so
\
_libcorpustag.so
\
_libcorpustag.so
\
...
@@ -38,7 +39,8 @@ CBINOUT=_boost_shared_ptr.so \
...
@@ -38,7 +39,8 @@ CBINOUT=_boost_shared_ptr.so \
_libcorpustokenreader.so
\
_libcorpustokenreader.so
\
_libcorpusiob.so
\
_libcorpusiob.so
\
_libcorpusannotationchannel.so
\
_libcorpusannotationchannel.so
\
_libcorpusannotatedsentence.so
_libcorpusannotatedsentence.so
\
_libcorpusannotationview.so
CWRAP
=
boost_shared_ptr_wrap.cxx
\
CWRAP
=
boost_shared_ptr_wrap.cxx
\
libcorpustag_wrap.cxx
\
libcorpustag_wrap.cxx
\
...
@@ -52,7 +54,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \
...
@@ -52,7 +54,8 @@ CWRAP=boost_shared_ptr_wrap.cxx \
libcorpustokenreader_wrap.cxx
\
libcorpustokenreader_wrap.cxx
\
libcorpusiob_wrap.cxx
\
libcorpusiob_wrap.cxx
\
libcorpusannotationchannel_wrap.cxx
\
libcorpusannotationchannel_wrap.cxx
\
libcorpusannotatedsentence_wrap.cxx
libcorpusannotatedsentence_wrap.cxx
\
libcorpusannotationview_wrap.cxx
CWRAPBIN
=
boost_shared_ptr_wrap.o
\
CWRAPBIN
=
boost_shared_ptr_wrap.o
\
libcorpustag_wrap.o
\
libcorpustag_wrap.o
\
...
@@ -66,7 +69,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \
...
@@ -66,7 +69,8 @@ CWRAPBIN=boost_shared_ptr_wrap.o \
libcorpustokenreader_wrap.o
\
libcorpustokenreader_wrap.o
\
libcorpusiob_wrap.o
\
libcorpusiob_wrap.o
\
libcorpusannotationchannel_wrap.o
\
libcorpusannotationchannel_wrap.o
\
libcorpusannotatedsentence_wrap.o
libcorpusannotatedsentence_wrap.o
\
libcorpusannotationview_wrap.o
PYMODULES
=
boost_shared_ptr.py
\
PYMODULES
=
boost_shared_ptr.py
\
libcorpustag.py
\
libcorpustag.py
\
...
@@ -80,7 +84,8 @@ PYMODULES=boost_shared_ptr.py \
...
@@ -80,7 +84,8 @@ PYMODULES=boost_shared_ptr.py \
libcorpustokenreader.py
\
libcorpustokenreader.py
\
libcorpusiob.py
\
libcorpusiob.py
\
libcorpusannotationchannel.py
\
libcorpusannotationchannel.py
\
libcorpusannotatedsentence.py
libcorpusannotatedsentence.py
\
libcorpusannotationview.py
PYCBIN
=
boost_shared_ptr.pyc
\
PYCBIN
=
boost_shared_ptr.pyc
\
libcorpustag.pyc
\
libcorpustag.pyc
\
...
@@ -94,7 +99,8 @@ PYCBIN=boost_shared_ptr.pyc \
...
@@ -94,7 +99,8 @@ PYCBIN=boost_shared_ptr.pyc \
libcorpustokenreader.pyc
\
libcorpustokenreader.pyc
\
libcorpusiob.pyc
\
libcorpusiob.pyc
\
libcorpusannotationchannel.pyc
\
libcorpusannotationchannel.pyc
\
libcorpusannotatedsentence.pyc
libcorpusannotatedsentence.pyc
\
libcorpusannotationview.pyc
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
all
:
boost_shared_ptr.o $(CBIN)
all
:
boost_shared_ptr.o $(CBIN)
...
@@ -198,6 +204,13 @@ libcorpusannotatedsentence.o:
...
@@ -198,6 +204,13 @@ libcorpusannotatedsentence.o:
$(
CPP
)
-shared
libcorpusannotatedsentence_wrap.o
\
$(
CPP
)
-shared
libcorpusannotatedsentence_wrap.o
\
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpusannotatedsentence.so
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpusannotatedsentence.so
# AnnotationView
libcorpusannotationview.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcorpusannotationview.i
$(
CPP
)
-c
libcorpusannotationview_wrap.cxx
-I
$(
PYTHONDIR
)
$(
CPPFLAGS
)
$(
CPP
)
-shared
libcorpusannotationview_wrap.o
\
$(
PWRUTILBIN
)
$(
CORPUS2BIN
)
-o
_libcorpusannotationview.so
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
clean
:
clean
:
rm
-f
$(
CBIN
)
$(
CBINOUT
)
$(
CWRAP
)
$(
CWRAPBIN
)
$(
PYMODULES
)
$(
PYCBIN
)
rm
-f
$(
CBIN
)
$(
CBINOUT
)
$(
CWRAP
)
$(
CWRAPBIN
)
$(
PYMODULES
)
$(
PYCBIN
)
This diff is collapsed.
Click to expand it.
swig/libcorpusannotationview.i
0 → 100644
+
43
−
0
View file @
1ba079a3
#
ifndef
SWIG_LIBCORPUS2_ANNOTATIONVIEW_I
#
define
SWIG_LIBCORPUS2_ANNOTATIONVIEW_I
%
module
libcorpusannotationview
%
{
#include <libcorpus2/ann/view.h>
%}
%
include
"
libcorpussentence.i
"
%
include
"
libcorpusannotationchannel.i
"
%
include
"
libcorpusannotatedsentence.i
"
%
include
"
std_string.i
"
%
include
"
boost_shared_ptr.i
"
// %template(AnnotatedSentencePtr) boost::shared_ptr<AnnotatedSentence>;
%
nodefaultctor
Corpus2
::
TokenWriter
;
namespace
Corpus2
{
class AnnotationView : public Corpus2::Sentence {
public:
AnnotationView(const boost::shared_ptr<AnnotatedSentence>& original, const std::string& ann_name_);
~AnnotationView();
/* --------------------------------------------------------------------- */
Ptr clone_shared() const;
/* --------------------------------------------------------------------- */
void commit();
void commit_to(
const boost::shared_ptr<AnnotatedSentence>& original,
const std::string& ann_name);
/* --------------------------------------------------------------------- */
void release_original();
};
}
using
namespace
std
;
using
namespace
Corpus2
;
#
endif
/* SWIG_LIBCORPUS2_ANNOTATIONVIEW_I */
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment