~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/openbabel-python.i

  • Committer: Package Import Robot
  • Author(s): Daniel Leidert
  • Date: 2013-05-22 19:08:27 UTC
  • mfrom: (1.1.11) (7.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20130522190827-72q0fnx5y2nm3bc0
Tags: 2.3.2+dfsg-1
* New upstream release.
* debian/control: Dropped DM-Upload-Allowed field.
  (Standards-Version): Bumped to 3.9.4.
* debian/copyright: Massive update.
* debian/upstream: Author name update.
* debian/get-orig-source.sh: Remove the windows-*/ directory too.
* debian/openbabel.install: Removed roundtrip manpage.
* debian/openbabel-gui.install: Fixed manpage name.
* debian/openbabel-gui.links: Removed unused file.
* debian/rules: Enable OpenMP. Disable tests on `nocheck'.
* debian/patches/gaussformat_nosym.patch: Dropped. Applied upstream.
* debian/patches/moldenformat_coordonly.patch: Ditto.
* debian/patches/obspectrophore_man.patch: Ditto.
* debian/patches/fix_ftbfs.patch: Added.
  - Fix several FTBFS issues in upstream build system.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#include <openbabel/spectrophore.h>
50
50
 
51
51
#include <openbabel/chargemodel.h>
 
52
#include <openbabel/phmodel.h>
52
53
#include <openbabel/graphsym.h>
53
54
#include <openbabel/isomorphism.h>
54
55
#include <openbabel/query.h>
55
56
#include <openbabel/canon.h>
 
57
 
 
58
#include <openbabel/stereo/tetrahedral.h>
 
59
#include <openbabel/stereo/cistrans.h>
 
60
#include <openbabel/stereo/squareplanar.h>
 
61
#include <openbabel/stereo/bindings.h>
56
62
%}
57
63
 
58
 
#ifdef HAVE_EIGEN2
 
64
#ifdef HAVE_EIGEN
59
65
%{
60
66
#include <openbabel/conformersearch.h>
61
67
#include <openbabel/math/align.h>
149
155
VECTORTEMPLATE_WRAP(UnsignedInt, unsigned int)
150
156
VVTEMPLATE_WRAP(Int, int)
151
157
VECTORTEMPLATE_WRAP(Double, double)
 
158
VECTORTEMPLATE_WRAP(ULong, unsigned long)
152
159
VECTORTEMPLATE_WRAP(String, std::string)
153
160
VECTORTEMPLATE_WRAP(Vector3, OpenBabel::vector3)
154
161
VVTEMPLATE_WRAP(Vector3, OpenBabel::vector3)
172
179
}
173
180
%}
174
181
%enddef
175
 
%inline %{ // can't use macro -- AliasData not OBAliasData
 
182
%inline %{ /* can't use macro -- AliasData not OBAliasData */
176
183
OpenBabel::AliasData *toAliasData(OpenBabel::OBGenericData *data) {
177
184
    return (OpenBabel::AliasData*) data;
178
185
}
199
206
CAST_GENERICDATA_TO(VectorData)
200
207
CAST_GENERICDATA_TO(VibrationData)
201
208
CAST_GENERICDATA_TO(VirtualBond)
 
209
CAST_GENERICDATA_TO(TetrahedralStereo)
 
210
CAST_GENERICDATA_TO(CisTransStereo)
 
211
CAST_GENERICDATA_TO(SquarePlanarStereo)
202
212
 
203
213
// This method is renamed to a valid Python method name, as otherwise
204
214
// it cannot be used from Python
288
298
%include <openbabel/op.h>
289
299
 
290
300
%include <openbabel/chargemodel.h>
 
301
%apply std::string& INPUT { std::string &start } // Required for OBChemTsfm.Init
 
302
%apply std::string& INPUT { std::string &end }   // Required for OBChemTsfm.Init
 
303
%include <openbabel/phmodel.h>
291
304
%include <openbabel/graphsym.h>
292
305
%include <openbabel/isomorphism.h>
293
306
%include <openbabel/query.h>
294
307
%include <openbabel/canon.h>
 
308
 
295
309
%include <openbabel/stereo/stereo.h>
296
310
 
297
311
%warnfilter(503) OpenBabel::OBBitVec; // Not wrapping any of the overloaded operators
302
316
%ignore OpenBabel::Swab;
303
317
%include <openbabel/rotamer.h>
304
318
%include <openbabel/spectrophore.h>
305
 
#ifdef HAVE_EIGEN2
 
319
#ifdef HAVE_EIGEN
306
320
%include <openbabel/conformersearch.h>
307
321
%include <openbabel/math/align.h>
308
322
#endif
485
499
    raise Exception("Use OBMol.CloneData instead. OBMol.SetData is only for use from C++.")
486
500
OBMol.SetData = exception
487
501
%}
 
502
 
 
503
%include "stereo.i"