/* ----------------------------------------------------------------------------
 * 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 OBGlobalDataBase : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

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

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

  ~OBGlobalDataBase() {
    Dispose();
  }

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

  public OBGlobalDataBase() : this(openbabelPINVOKE.new_OBGlobalDataBase(), true) {
  }

  public void Init() {
    openbabelPINVOKE.OBGlobalDataBase_Init(swigCPtr);
  }

  public virtual uint GetSize() {
    uint ret = openbabelPINVOKE.OBGlobalDataBase_GetSize(swigCPtr);
    return ret;
  }

  public void SetReadDirectory(string dir) {
    openbabelPINVOKE.OBGlobalDataBase_SetReadDirectory(swigCPtr, dir);
  }

  public void SetEnvironmentVariable(string var) {
    openbabelPINVOKE.OBGlobalDataBase_SetEnvironmentVariable(swigCPtr, var);
  }

  public virtual void ParseLine(string arg0) {
    openbabelPINVOKE.OBGlobalDataBase_ParseLine(swigCPtr, arg0);
  }

}
