Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
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
WCCL
Commits
6c76152d
Commit
6c76152d
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Added wrapper for Wccl::Lexicons
parent
e11d00b8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swig/Makefile
+13
-0
13 additions, 0 deletions
swig/Makefile
swig/libccllexicons.i
+48
-0
48 additions, 0 deletions
swig/libccllexicons.i
with
61 additions
and
0 deletions
swig/Makefile
+
13
−
0
View file @
6c76152d
...
...
@@ -40,6 +40,7 @@ CBIN=libcclvalue.o \
libcclmatchrulesequence.o
\
libcclfunctionalopsequence.o
\
libccllexicon.o
\
libccllexicons.o
\
libcclwcclfileopsections.o
\
libcclwcclfile.o
\
wccl.o
...
...
@@ -69,6 +70,7 @@ CBINOUT=_libcclvalue.so \
_libcclmatchrulesequence.so
\
_libcclfunctionalopsequence.so
\
_libccllexicon.so
\
_libccllexicons.so
\
_libcclwcclfileopsections.so
\
_wccl.so
\
_boost_shared_ptr.so
...
...
@@ -98,6 +100,7 @@ CWRAP=libcclvalue_wrap.cxx \
libcclmatchrulesequence_wrap.cxx
\
libcclfunctionalopsequence_wrap.cxx
\
libccllexicon_wrap.cxx
\
libccllexicons_wrap.cxx
\
libcclwcclfileopsections_wrap.cxx
\
wccl_wrap.cxx
\
boost_shared_ptr_wrap.cxx
...
...
@@ -127,6 +130,7 @@ CWRAPBIN=libcclvalue_wrap.o \
libcclmatchrulesequence_wrap.o
\
libcclfunctionalopsequence_wrap.o
\
libccllexicon_wrap.o
\
libccllexicons_wrap.o
\
libcclwcclfileopsections_wrap.o
\
wccl_wrap.o
\
boost_shared_ptr_wrap.o
...
...
@@ -156,6 +160,7 @@ PYMODULES=libcclvalue.py \
libcclmatchrulesequence.py
\
libcclfunctionalopsequence.py
\
libccllexicon.py
\
libccllexicons.py
\
libcclwcclfileopsections.py
\
wccl.py
\
boost_shared_ptr.py
...
...
@@ -185,6 +190,7 @@ PYCBIN=libcclvalue.pyc \
libcclmatchrulesequence.pyc
\
libcclfunctionalopsequence.pyc
\
libccllexicon.pyc
\
libccllexicons.pyc
\
libcclwcclfileopsections.pyc
\
wccl.pyc
\
boost_shared_ptr.pyc
...
...
@@ -387,6 +393,13 @@ libccllexicon.o:
$(
CPP
)
-shared
libccllexicon_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libccllexicon.so
# Lexicons
libccllexicons.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libccllexicons.i
$(
CPP
)
-c
libccllexicons_wrap.cxx
-I
$(
PYTHONDIR
)
-I
$(
WCCLDIR
)
$(
CPPFLAGS
)
$(
CPP
)
-shared
libccllexicons_wrap.o
\
$(
CCLBIN
)
$(
ANTLRLIB
)
-o
_libccllexicons.so
# WcclFileOpSections
libcclwcclfileopsections.o
:
$(
SWIG
)
$(
SWIGOPTS_LANG
)
libcclwcclfileopsections.i
...
...
This diff is collapsed.
Click to expand it.
swig/libccllexicons.i
0 → 100644
+
48
−
0
View file @
6c76152d
#
ifndef
SWIG_LIBWCCL_LEXICONS_I
#
define
SWIG_LIBWCCL_LEXICONS_I
%
module
libccllexicons
%
{
#include <libwccl/lexicon/lexicons.h>
%}
%
include
"
libccllexicon.i
"
%
include
"
std_string.i
"
%
include
"
boost_shared_ptr.i
"
%
rename
(
map_t
)
boost
::
unordered_map
<
std
::
string
,
boost
::
shared_ptr
<
Lexicon
>
>
;
namespace
Wccl
{
class Lexicons {
public:
typedef boost::unordered_map<std::string, boost::shared_ptr<Lexicon> > map_t;
/* --------------------------------------------------------------------- */
Lexicons();
/* --------------------------------------------------------------------- */
bool has_lexicon(const std::string& name) const;
/* --------------------------------------------------------------------- */
const Lexicon& get(const std::string& name) const;
boost::shared_ptr<const Lexicon> get_ptr(const std::string& name) const;
/* --------------------------------------------------------------------- */
void insert(const boost::shared_ptr<Lexicon>& lexicon);
/* --------------------------------------------------------------------- */
const map_t& get_lexicons() const;
};
}
using
namespace
boost
;
using
namespace
Wccl
;
using
namespace
std
;
#
endif
/* SWIG_LIBWCCL_LEXICONS_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