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

« back to all changes in this revision

Viewing changes to scripts/java/OBBase.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.36
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
 
 
10
public class OBBase {
 
11
  private long swigCPtr;
 
12
  protected boolean swigCMemOwn;
 
13
 
 
14
  protected OBBase(long cPtr, boolean cMemoryOwn) {
 
15
    swigCMemOwn = cMemoryOwn;
 
16
    swigCPtr = cPtr;
 
17
  }
 
18
 
 
19
  protected static long getCPtr(OBBase obj) {
 
20
    return (obj == null) ? 0 : obj.swigCPtr;
 
21
  }
 
22
 
 
23
  protected void finalize() {
 
24
    delete();
 
25
  }
 
26
 
 
27
  public synchronized void delete() {
 
28
    if(swigCPtr != 0 && swigCMemOwn) {
 
29
      swigCMemOwn = false;
 
30
      openbabelJNI.delete_OBBase(swigCPtr);
 
31
    }
 
32
    swigCPtr = 0;
 
33
  }
 
34
 
 
35
  public boolean Clear() {
 
36
    return openbabelJNI.OBBase_Clear(swigCPtr, this);
 
37
  }
 
38
 
 
39
  public OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
 
40
    long cPtr = openbabelJNI.OBBase_DoTransformations(swigCPtr, this, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
 
41
    return (cPtr == 0) ? null : new OBBase(cPtr, false);
 
42
  }
 
43
 
 
44
  public static String ClassDescription() {
 
45
    return openbabelJNI.OBBase_ClassDescription();
 
46
  }
 
47
 
 
48
  public boolean HasData(String arg0) {
 
49
    return openbabelJNI.OBBase_HasData__SWIG_0(swigCPtr, this, arg0);
 
50
  }
 
51
 
 
52
  public boolean HasData(long type) {
 
53
    return openbabelJNI.OBBase_HasData__SWIG_2(swigCPtr, this, type);
 
54
  }
 
55
 
 
56
  public void DeleteData(long type) {
 
57
    openbabelJNI.OBBase_DeleteData__SWIG_0(swigCPtr, this, type);
 
58
  }
 
59
 
 
60
  public void DeleteData(OBGenericData arg0) {
 
61
    openbabelJNI.OBBase_DeleteData__SWIG_1(swigCPtr, this, OBGenericData.getCPtr(arg0), arg0);
 
62
  }
 
63
 
 
64
  public void DeleteData(vectorData arg0) {
 
65
    openbabelJNI.OBBase_DeleteData__SWIG_2(swigCPtr, this, vectorData.getCPtr(arg0), arg0);
 
66
  }
 
67
 
 
68
  public boolean DeleteData(String s) {
 
69
    return openbabelJNI.OBBase_DeleteData__SWIG_3(swigCPtr, this, s);
 
70
  }
 
71
 
 
72
  public void SetData(OBGenericData d) {
 
73
    openbabelJNI.OBBase_SetData(swigCPtr, this, OBGenericData.getCPtr(d), d);
 
74
  }
 
75
 
 
76
  public void CloneData(OBGenericData d) {
 
77
    openbabelJNI.OBBase_CloneData(swigCPtr, this, OBGenericData.getCPtr(d), d);
 
78
  }
 
79
 
 
80
  public long DataSize() {
 
81
    return openbabelJNI.OBBase_DataSize(swigCPtr, this);
 
82
  }
 
83
 
 
84
  public OBGenericData GetData(long type) {
 
85
    long cPtr = openbabelJNI.OBBase_GetData__SWIG_0(swigCPtr, this, type);
 
86
    return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
 
87
  }
 
88
 
 
89
  public OBGenericData GetData(String arg0) {
 
90
    long cPtr = openbabelJNI.OBBase_GetData__SWIG_1(swigCPtr, this, arg0);
 
91
    return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
 
92
  }
 
93
 
 
94
  public vectorData GetAllData(long type) {
 
95
    return new vectorData(openbabelJNI.OBBase_GetAllData(swigCPtr, this, type), true);
 
96
  }
 
97
 
 
98
  public vectorData GetData() {
 
99
    return new vectorData(openbabelJNI.OBBase_GetData__SWIG_3(swigCPtr, this), false);
 
100
  }
 
101
 
 
102
  public vectorData GetData(DataOrigin source) {
 
103
    return new vectorData(openbabelJNI.OBBase_GetData__SWIG_4(swigCPtr, this, source.swigValue()), true);
 
104
  }
 
105
 
 
106
  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
 
107
    return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBBase_BeginData(swigCPtr, this), true);
 
108
  }
 
109
 
 
110
  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
 
111
    return new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelJNI.OBBase_EndData(swigCPtr, this), true);
 
112
  }
 
113
 
 
114
  public OBBase() {
 
115
    this(openbabelJNI.new_OBBase(), true);
 
116
  }
 
117
 
 
118
}