~ubuntu-branches/ubuntu/feisty/openbabel/feisty

« back to all changes in this revision

Viewing changes to scripts/openbabel.i

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-05-14 19:46:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060514194601-h3j1wovvc42cigxl
Tags: 2.0.1-1
* New upstream release. (Closes: #341628)
* debian/patches/04_zipstream_fix.diff: Removed, applied upstream.
* debian/rules (DEB_MAKE_CHECK_TARGET): Readded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// needed to work around bug in SWIG -- can't completely override module from command-line
 
2
#ifdef SWIGPERL
 
3
%module "Chemistry::OpenBabel"
 
4
#else
 
5
%module openbabel
 
6
#endif
 
7
 
 
8
%{
 
9
// used to set import/export for Cygwin DLLs
 
10
#ifdef WIN32
 
11
#define USING_OBDLL
 
12
#endif
 
13
 
 
14
 
 
15
#include "obutil.h"
 
16
#include "math/vector3.h"
 
17
 
 
18
#include "mol.h"
 
19
#include "generic.h"
 
20
#include "ring.h"
 
21
#include "obconversion.h"
 
22
 
 
23
#include "data.h"
 
24
#include "parsmart.h"
 
25
%}
 
26
 
 
27
%include "std_list.i"
 
28
%include "std_map.i"
 
29
%include "std_vector.i"
 
30
%include "std_string.i"
 
31
 
 
32
namespace std {
 
33
%template (vectorInt)           vector<int>;
 
34
%template (vvInt)               vector< vector<int> >;
 
35
%template (vectorDouble)        vector<double>;
 
36
%template (vVector3)            vector<OpenBabel::vector3>;
 
37
 
 
38
%template (vectorMol)           vector<OpenBabel::OBMol>;
 
39
%template (vectorBond)          vector<OpenBabel::OBBond>;
 
40
%template (vectorResidue)       vector<OpenBabel::OBResidue>;
 
41
%template (vectorRing)          vector<OpenBabel::OBRing>;
 
42
}
 
43
 
 
44
%import "babelconfig.h"
 
45
 
 
46
%include "data.h"
 
47
%include "obutil.h"
 
48
%include "math/vector3.h"
 
49
 
 
50
%import "base.h"
 
51
%import "chains.h"
 
52
// %import "math/vector3.h"
 
53
%import "bitvec.h"
 
54
%import "generic.h"
 
55
%import "typer.h"
 
56
%import "oberror.h"
 
57
 
 
58
%include "obconversion.h"
 
59
%include "mol.h"
 
60
%include "ring.h"
 
61
%include "parsmart.h"