/[hyperestraier_wrappers]/trunk/HyperEstraier.i
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/HyperEstraier.i

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (hide annotations)
Sat Sep 3 20:04:09 2005 UTC (16 years, 3 months ago) by dpavlin
File size: 703 byte(s)
fix for HyperEstraierWrapper.cpp:21: Warning(401): Nothing known about base class 'std::runtime_error'
1 dpavlin 1 %module HyperEstraier
2    
3     %include exception.i
4 dpavlin 7 %include <std/std_except.i>
5 dpavlin 1 %include "stl.i"
6    
7     %exception {
8     try {
9     $action
10     } catch (const char *msg) {
11     SWIG_exception(SWIG_RuntimeError, msg);
12     }
13     }
14    
15     namespace std {
16     %template(StrVector) std::vector<std::string>;
17     %template(IntVector) std::vector<int>;
18     %template() std::pair<std::string,std::string>;
19     %template(StrStrMap) std::map<std::string,std::string>;
20     };
21    
22     %newobject Document::get_dump_draft();
23     %newobject Document::get_attr_names();
24     %newobject Database::search();
25     %newobject Database::etch_doc();
26     %newobject Document::make_snippet();
27     %newobject Document::texts();
28    
29     %{
30     #include "HyperEstraierWrapper.cpp"
31     %}
32    
33     %include "HyperEstraierWrapper.cpp"

  ViewVC Help
Powered by ViewVC 1.1.26