mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-04 10:23:18 -05:00
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-1-x
........
r1918 | ghutchis | 2007-03-30 14:25:42 -0400 (Fri, 30 Mar 2007) | 2 lines
Produce a better "clean" before creating a distribution tar
........
r1919 | ghutchis | 2007-03-30 16:46:51 -0400 (Fri, 30 Mar 2007) | 7 lines
* include/openbabel/residue.h: Hide some residue names (e.g.,
_1MG) from SWIG wrappers -- such constants are not valid symbols
in some languages like Ruby.
* scripts/ Update accordingly.
........
r1920 | ghutchis | 2007-03-30 16:47:12 -0400 (Fri, 30 Mar 2007) | 4 lines
* src/base.cpp: Additional "What's new" documentation for 2.1
release.
........
r1921 | ghutchis | 2007-03-30 16:47:34 -0400 (Fri, 30 Mar 2007) | 2 lines
(missed changelog update.)
........
r1922 | ghutchis | 2007-03-30 17:53:27 -0400 (Fri, 30 Mar 2007) | 2 lines
Updated to use Ruby-style API names via SWIG -autorename
........
r1923 | ghutchis | 2007-04-02 22:41:53 -0400 (Mon, 02 Apr 2007) | 7 lines
* include/openbabel/residue.h: Undo previous change. Rich Apodaca
suggested some SWIG-fu instead.
* scripts/ Update accordingly. Includes ruby changes, new README
and examples.
........
r1924 | ghutchis | 2007-04-03 22:51:43 -0400 (Tue, 03 Apr 2007) | 2 lines
Updated for 2.1 release of scripting interfaces.
........
r1925 | ghutchis | 2007-04-04 00:06:50 -0400 (Wed, 04 Apr 2007) | 2 lines
Moved examples to subdir (for cleaner-looking dist) and MANIFEST
........
r1926 | ghutchis | 2007-04-04 20:58:12 -0400 (Wed, 04 Apr 2007) | 2 lines
Updated for new Doxygen update (and new warnings)
........
r1927 | timvdm | 2007-04-05 17:41:37 -0400 (Thu, 05 Apr 2007) | 4 lines
- documentation update
- covert to dative bonds (for psa)
- psa.txt: fix smiles for 3-rings
........
r1929 | ghutchis | 2007-04-07 14:43:05 -0400 (Sat, 07 Apr 2007) | 3 lines
* NEWS: Minor fixes for 2.1.0 final release.
........
r1930 | ghutchis | 2007-04-07 15:07:08 -0400 (Sat, 07 Apr 2007) | 2 lines
Minor fixes. Corresponds to 2.1.0 released source.
........
r1933 | ghutchis | 2007-04-13 13:44:01 -0400 (Fri, 13 Apr 2007) | 8 lines
* src/formats/inchi/strutil.c: Bug reported on the InChI mailing
list.
* src/formats/inchiformat.cpp: Bug caught during ChemSpotlight
testing -- some files don't have chirality information (e.g., 3D
files but with 0.0 coordinates throughout). Warn and give up.
........
126 lines
3.5 KiB
OpenEdge ABL
126 lines
3.5 KiB
OpenEdge ABL
%module openbabel
|
|
%module OpenBabel
|
|
|
|
// These fields are renamed to valid constant names
|
|
%rename(U1MA) OpenBabel::OBResidueIndex::_1MA;
|
|
%rename(U1MG) OpenBabel::OBResidueIndex::_1MG;
|
|
%rename(U2MG) OpenBabel::OBResidueIndex::_2MG;
|
|
%rename(U7MG) OpenBabel::OBResidueIndex::_7MG;
|
|
%rename(U5MU) OpenBabel::OBResidueIndex::_5MU;
|
|
%rename(U5MC) OpenBabel::OBResidueIndex::_5MC;
|
|
|
|
%{
|
|
// used to set import/export for Cygwin DLLs
|
|
#ifdef WIN32
|
|
#define USING_OBDLL
|
|
#endif
|
|
|
|
#include <math.h>
|
|
|
|
#include <openbabel/obutil.h>
|
|
#include <openbabel/rand.h>
|
|
#include <openbabel/math/vector3.h>
|
|
#include <openbabel/math/matrix3x3.h>
|
|
#include <openbabel/generic.h>
|
|
|
|
#include <openbabel/base.h>
|
|
#include <openbabel/mol.h>
|
|
#include <openbabel/atom.h>
|
|
#include <openbabel/bond.h>
|
|
#include <openbabel/residue.h>
|
|
#include <openbabel/internalcoord.h>
|
|
|
|
#include <openbabel/ring.h>
|
|
#include <openbabel/obconversion.h>
|
|
#include <openbabel/oberror.h>
|
|
#include <openbabel/pluginiter.h>
|
|
#include <openbabel/fingerprint.h>
|
|
|
|
#include <openbabel/forcefield.h>
|
|
|
|
#include <openbabel/data.h>
|
|
#include <openbabel/parsmart.h>
|
|
%}
|
|
|
|
%include "std_map.i"
|
|
%include "std_vector.i"
|
|
%include "std_string.i"
|
|
|
|
namespace std {
|
|
%template (vectorInt) vector<int>;
|
|
%template (vectorUnsignedInt) vector<unsigned int>;
|
|
%template (vvInt) vector< vector<int> >;
|
|
%template (vectorDouble) vector<double>;
|
|
%template (vVector3) vector<OpenBabel::vector3>;
|
|
|
|
%template (vectorMol) vector<OpenBabel::OBMol>;
|
|
%template (vectorBond) vector<OpenBabel::OBBond>;
|
|
%template (vectorResidue) vector<OpenBabel::OBResidue>;
|
|
%template (vectorRing) vector<OpenBabel::OBRing>;
|
|
%template (vectorData) vector<OpenBabel::OBGenericData*>;
|
|
}
|
|
|
|
|
|
|
|
// These methods are renamed to valid method names
|
|
%rename(inc) *::operator++;
|
|
%rename(good) *::operator bool;
|
|
%rename(deref) *::operator->;
|
|
%import <openbabel/babelconfig.h>
|
|
|
|
%include <openbabel/data.h>
|
|
%include <openbabel/rand.h>
|
|
%include <openbabel/obutil.h>
|
|
%include <openbabel/math/vector3.h>
|
|
%import <openbabel/math/matrix3x3.h>
|
|
%include <openbabel/generic.h>
|
|
|
|
%include <openbabel/base.h>
|
|
|
|
%import <openbabel/chains.h>
|
|
%import <openbabel/bitvec.h>
|
|
%import <openbabel/typer.h>
|
|
|
|
%include <openbabel/pluginiter.h>
|
|
%template (pluginiterFingerprint) OpenBabel::PluginIter<OpenBabel::OBFingerprint>;
|
|
%template (pluginiterForceField) OpenBabel::PluginIter<OpenBabel::OBForceField>;
|
|
|
|
%include <openbabel/oberror.h>
|
|
%include <openbabel/obconversion.h>
|
|
%include <openbabel/residue.h>
|
|
%include <openbabel/internalcoord.h>
|
|
%include <openbabel/atom.h>
|
|
%include <openbabel/bond.h>
|
|
%include <openbabel/mol.h>
|
|
%include <openbabel/ring.h>
|
|
%include <openbabel/parsmart.h>
|
|
%include <openbabel/fingerprint.h>
|
|
|
|
%include <openbabel/forcefield.h>
|
|
|
|
# The following %ignores avoid warning messages due to shadowed classes.
|
|
# This does not imply a loss of functionality as (in this case)
|
|
# the shadowed class is identical (from the point of view of SWIG) to
|
|
# the shadowing class.
|
|
# This is because C++ references (&) are transformed by SWIG back into
|
|
# pointers, so that OBAtomIter(OBMol &) would be treated the same as
|
|
# OBAtomIter(OBMol *).
|
|
|
|
%ignore OBAtomAtomIter(OBAtom &);
|
|
%ignore OBAtomBondIter(OBAtom &);
|
|
%ignore OBMolAngleIter(OBMol &);
|
|
%ignore OBMolAtomIter(OBMol &);
|
|
%ignore OBMolAtomBFSIter(OBMol &);
|
|
%ignore OBMolAtomDFSIter(OBMol &);
|
|
%ignore OBMolBondIter(OBMol &);
|
|
%ignore OBMolPairIter(OBMol &);
|
|
%ignore OBMolRingIter(OBMol &);
|
|
%ignore OBMolTorsionIter(OBMol &);
|
|
%ignore OBResidueIter(OBMol &);
|
|
%ignore OBResidueAtomIter(OBResidue &);
|
|
|
|
|
|
%ignore *::operator=;
|
|
|
|
%include <openbabel/obiter.h>
|