1 |
dpavlin |
1 |
%module HyperEstraier |
2 |
|
|
|
3 |
|
|
%include exception.i |
4 |
|
|
%include "stl.i" |
5 |
|
|
|
6 |
|
|
%exception { |
7 |
|
|
try { |
8 |
|
|
$action |
9 |
|
|
} catch (const char *msg) { |
10 |
|
|
SWIG_exception(SWIG_RuntimeError, msg); |
11 |
|
|
} |
12 |
|
|
} |
13 |
|
|
|
14 |
|
|
namespace std { |
15 |
|
|
%template(StrVector) std::vector<std::string>; |
16 |
|
|
%template(IntVector) std::vector<int>; |
17 |
|
|
%template() std::pair<std::string,std::string>; |
18 |
|
|
%template(StrStrMap) std::map<std::string,std::string>; |
19 |
|
|
}; |
20 |
|
|
|
21 |
|
|
%newobject Document::get_dump_draft(); |
22 |
|
|
%newobject Document::get_attr_names(); |
23 |
|
|
%newobject Database::search(); |
24 |
|
|
%newobject Database::etch_doc(); |
25 |
|
|
%newobject Document::make_snippet(); |
26 |
|
|
%newobject Document::texts(); |
27 |
|
|
|
28 |
|
|
%{ |
29 |
|
|
#include "HyperEstraierWrapper.cpp" |
30 |
|
|
%} |
31 |
|
|
|
32 |
|
|
%include "HyperEstraierWrapper.cpp" |