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

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

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

  ~FptIndexHeader() {
    Dispose();
  }

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

  public uint headerlength {
    set {
      openbabelPINVOKE.FptIndexHeader_headerlength_set(swigCPtr, value);
    } 
    get {
      uint ret = openbabelPINVOKE.FptIndexHeader_headerlength_get(swigCPtr);
      return ret;
    } 
  }

  public uint nEntries {
    set {
      openbabelPINVOKE.FptIndexHeader_nEntries_set(swigCPtr, value);
    } 
    get {
      uint ret = openbabelPINVOKE.FptIndexHeader_nEntries_get(swigCPtr);
      return ret;
    } 
  }

  public uint words {
    set {
      openbabelPINVOKE.FptIndexHeader_words_set(swigCPtr, value);
    } 
    get {
      uint ret = openbabelPINVOKE.FptIndexHeader_words_get(swigCPtr);
      return ret;
    } 
  }

  public string fpid {
    set {
      openbabelPINVOKE.FptIndexHeader_fpid_set(swigCPtr, value);
    } 
    get {
      string ret = openbabelPINVOKE.FptIndexHeader_fpid_get(swigCPtr);
      return ret;
    } 
  }

  public string datafilename {
    set {
      openbabelPINVOKE.FptIndexHeader_datafilename_set(swigCPtr, value);
    } 
    get {
      string ret = openbabelPINVOKE.FptIndexHeader_datafilename_get(swigCPtr);
      return ret;
    } 
  }

  public FptIndexHeader() : this(openbabelPINVOKE.new_FptIndexHeader(), true) {
  }

}
