From 25a60275cf645875828e1b9e9c667ffbd0bdb178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl> Date: Thu, 17 Nov 2011 11:05:25 +0100 Subject: [PATCH] Swig header with default definitions --- swig/std_defs.i | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 swig/std_defs.i diff --git a/swig/std_defs.i b/swig/std_defs.i new file mode 100644 index 0000000..9f1b5af --- /dev/null +++ b/swig/std_defs.i @@ -0,0 +1,26 @@ +/** + * This module contains definitions on standard types such as + * list, vector, string f.e.: + * attr_map_t is defined as std::map<std::string, std::string> + */ +#ifndef SWIG_LIBCORPUS2_STD_DEFS_I +#define SWIG_LIBCORPUS2_STD_DEFS_I + +%module libdefs +%{ +%} + +// %include "std_set.i" +// %include "std_pair.i" +%include "std_map.i" +%include "std_string.i" +%include "std_vector.i" +%include "boost_shared_ptr.i" + +%template(attr_map_t) std::map<std::string, std::string>; +%template(IntVector) std::vector<int>; +%template(StdStringVector) std::vector<std::string>; + +using namespace std; + +#endif /* SWIG_LIBCORPUS2_STD_DEFS_I */ -- GitLab