/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBBase : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

  internal OBBase(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBBase obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBBase() {
    Dispose();
  }

  public virtual void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBBase(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
    }
  }

  public virtual bool Clear() {
    bool ret = openbabelPINVOKE.OBBase_Clear(swigCPtr);
    return ret;
  }

  public virtual OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
    IntPtr cPtr = openbabelPINVOKE.OBBase_DoTransformations(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
    OBBase ret = (cPtr == IntPtr.Zero) ? null : new OBBase(cPtr, false);
    return ret;
  }

  public static string ClassDescription() {
    string ret = openbabelPINVOKE.OBBase_ClassDescription();
    return ret;
  }

  public bool HasData(string arg0) {
    bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_0(swigCPtr, arg0);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public bool HasData(uint type) {
    bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_2(swigCPtr, type);
    return ret;
  }

  public void DeleteData(uint type) {
    openbabelPINVOKE.OBBase_DeleteData__SWIG_0(swigCPtr, type);
  }

  public void DeleteData(OBGenericData arg0) {
    openbabelPINVOKE.OBBase_DeleteData__SWIG_1(swigCPtr, OBGenericData.getCPtr(arg0));
  }

  public void DeleteData(vectorData arg0) {
    openbabelPINVOKE.OBBase_DeleteData__SWIG_2(swigCPtr, vectorData.getCPtr(arg0));
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public bool DeleteData(string s) {
    bool ret = openbabelPINVOKE.OBBase_DeleteData__SWIG_3(swigCPtr, s);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public void SetData(OBGenericData d) {
    openbabelPINVOKE.OBBase_SetData(swigCPtr, OBGenericData.getCPtr(d));
  }

  public void CloneData(OBGenericData d) {
    openbabelPINVOKE.OBBase_CloneData(swigCPtr, OBGenericData.getCPtr(d));
  }

  public uint DataSize() {
    uint ret = openbabelPINVOKE.OBBase_DataSize(swigCPtr);
    return ret;
  }

  public OBGenericData GetData(uint type) {
    IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_0(swigCPtr, type);
    OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
    return ret;
  }

  public OBGenericData GetData(string arg0) {
    IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_1(swigCPtr, arg0);
    OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }

  public vectorData GetAllData(uint type) {
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetAllData(swigCPtr, type), true);
    return ret;
  }

  public vectorData GetData() {
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_3(swigCPtr), false);
    return ret;
  }

  public vectorData GetData(DataOrigin source) {
    vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_4(swigCPtr, (int)source), true);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
    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);
    return ret;
  }

  public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
    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);
    return ret;
  }

  public OBBase() : this(openbabelPINVOKE.new_OBBase(), true) {
  }

}
