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

« back to all changes in this revision

Viewing changes to scripts/csharp/OBSerialNums.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 OBSerialNums : OBGenericData {
 
14
  private HandleRef swigCPtr;
 
15
 
 
16
  internal OBSerialNums(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBSerialNumsUpcast(cPtr), cMemoryOwn) {
 
17
    swigCPtr = new HandleRef(this, cPtr);
 
18
  }
 
19
 
 
20
  internal static HandleRef getCPtr(OBSerialNums obj) {
 
21
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  ~OBSerialNums() {
 
25
    Dispose();
 
26
  }
 
27
 
 
28
  public override void Dispose() {
 
29
    lock(this) {
 
30
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
31
        swigCMemOwn = false;
 
32
        openbabelPINVOKE.delete_OBSerialNums(swigCPtr);
 
33
      }
 
34
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
35
      GC.SuppressFinalize(this);
 
36
      base.Dispose();
 
37
    }
 
38
  }
 
39
 
 
40
  public OBSerialNums() : this(openbabelPINVOKE.new_OBSerialNums__SWIG_0(), true) {
 
41
  }
 
42
 
 
43
  public OBSerialNums(OBSerialNums cp) : this(openbabelPINVOKE.new_OBSerialNums__SWIG_1(OBSerialNums.getCPtr(cp)), true) {
 
44
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
45
  }
 
46
 
 
47
  public SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t GetData() {
 
48
    SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t ret = new SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t(openbabelPINVOKE.OBSerialNums_GetData(swigCPtr), false);
 
49
    return ret;
 
50
  }
 
51
 
 
52
  public void SetData(SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t sm) {
 
53
    openbabelPINVOKE.OBSerialNums_SetData(swigCPtr, SWIGTYPE_p_std__mapT_int_OpenBabel__OBAtom_p_t.getCPtr(sm));
 
54
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
 
55
  }
 
56
 
 
57
}