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

« back to all changes in this revision

Viewing changes to scripts/csharp/OBBase.cs

  • 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
using System;
 
11
using System.Runtime.InteropServices;
 
12
 
 
13
public class OBBase : IDisposable {
 
14
  private HandleRef swigCPtr;
 
15
  protected bool swigCMemOwn;
 
16
 
 
17
  internal OBBase(IntPtr cPtr, bool cMemoryOwn) {
 
18
    swigCMemOwn = cMemoryOwn;
 
19
    swigCPtr = new HandleRef(this, cPtr);
 
20
  }
 
21
 
 
22
  internal static HandleRef getCPtr(OBBase obj) {
 
23
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
24
  }
 
25
 
 
26
  ~OBBase() {
 
27
    Dispose();
 
28
  }
 
29
 
 
30
  public virtual void Dispose() {
 
31
    lock(this) {
 
32
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
33
        swigCMemOwn = false;
 
34
        openbabelPINVOKE.delete_OBBase(swigCPtr);
 
35
      }
 
36
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
37
      GC.SuppressFinalize(this);
 
38
    }
 
39
  }
 
40
 
 
41
  public virtual bool Clear() {
 
42
    bool ret = openbabelPINVOKE.OBBase_Clear(swigCPtr);
 
43
    return ret;
 
44
  }
 
45
 
 
46
  public virtual OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
 
47
    IntPtr cPtr = openbabelPINVOKE.OBBase_DoTransformations(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
 
48
    OBBase ret = (cPtr == IntPtr.Zero) ? null : new OBBase(cPtr, false);
 
49
    return ret;
 
50
  }
 
51
 
 
52
  public static string ClassDescription() {
 
53
    string ret = openbabelPINVOKE.OBBase_ClassDescription();
 
54
    return ret;
 
55
  }
 
56
 
 
57
  public bool HasData(string arg0) {
 
58
    bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_0(swigCPtr, arg0);
 
59
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
60
    return ret;
 
61
  }
 
62
 
 
63
  public bool HasData(uint type) {
 
64
    bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_2(swigCPtr, type);
 
65
    return ret;
 
66
  }
 
67
 
 
68
  public void DeleteData(uint type) {
 
69
    openbabelPINVOKE.OBBase_DeleteData__SWIG_0(swigCPtr, type);
 
70
  }
 
71
 
 
72
  public void DeleteData(OBGenericData arg0) {
 
73
    openbabelPINVOKE.OBBase_DeleteData__SWIG_1(swigCPtr, OBGenericData.getCPtr(arg0));
 
74
  }
 
75
 
 
76
  public void DeleteData(vectorData arg0) {
 
77
    openbabelPINVOKE.OBBase_DeleteData__SWIG_2(swigCPtr, vectorData.getCPtr(arg0));
 
78
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
79
  }
 
80
 
 
81
  public bool DeleteData(string s) {
 
82
    bool ret = openbabelPINVOKE.OBBase_DeleteData__SWIG_3(swigCPtr, s);
 
83
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
84
    return ret;
 
85
  }
 
86
 
 
87
  public void SetData(OBGenericData d) {
 
88
    openbabelPINVOKE.OBBase_SetData(swigCPtr, OBGenericData.getCPtr(d));
 
89
  }
 
90
 
 
91
  public void CloneData(OBGenericData d) {
 
92
    openbabelPINVOKE.OBBase_CloneData(swigCPtr, OBGenericData.getCPtr(d));
 
93
  }
 
94
 
 
95
  public uint DataSize() {
 
96
    uint ret = openbabelPINVOKE.OBBase_DataSize(swigCPtr);
 
97
    return ret;
 
98
  }
 
99
 
 
100
  public OBGenericData GetData(uint type) {
 
101
    IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_0(swigCPtr, type);
 
102
    OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
 
103
    return ret;
 
104
  }
 
105
 
 
106
  public OBGenericData GetData(string arg0) {
 
107
    IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_1(swigCPtr, arg0);
 
108
    OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
 
109
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
110
    return ret;
 
111
  }
 
112
 
 
113
  public vectorData GetAllData(uint type) {
 
114
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetAllData(swigCPtr, type), true);
 
115
    return ret;
 
116
  }
 
117
 
 
118
  public vectorData GetData() {
 
119
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_3(swigCPtr), false);
 
120
    return ret;
 
121
  }
 
122
 
 
123
  public vectorData GetData(DataOrigin source) {
 
124
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_4(swigCPtr, (int)source), true);
 
125
    return ret;
 
126
  }
 
127
 
 
128
  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
 
129
    SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator ret = new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelPINVOKE.OBBase_BeginData(swigCPtr), true);
 
130
    return ret;
 
131
  }
 
132
 
 
133
  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
 
134
    SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator ret = new SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator(openbabelPINVOKE.OBBase_EndData(swigCPtr), true);
 
135
    return ret;
 
136
  }
 
137
 
 
138
  public OBBase() : this(openbabelPINVOKE.new_OBBase(), true) {
 
139
  }
 
140
 
 
141
}