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

namespace BerkeleyDB.Internal {

using System;
using System.Runtime.InteropServices;

internal class DB_COMPACT : IDisposable {
  private HandleRef swigCPtr;
  protected bool swigCMemOwn;

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

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

  ~DB_COMPACT() {
    Dispose();
  }

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

  internal uint compact_fillpercent {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_fillpercent_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_fillpercent_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_timeout {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_timeout_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_timeout_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_pages {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_pages_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_pages_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_pages_free {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_pages_free_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_pages_free_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_pages_examine {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_pages_examine_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_pages_examine_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_levels {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_levels_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_levels_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_deadlock {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_deadlock_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_deadlock_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_pages_truncated {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_pages_truncated_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_pages_truncated_get(swigCPtr);
      return ret;
    } 
  }

  internal uint compact_truncate {
    set {
      libdb_csharpPINVOKE.DB_COMPACT_compact_truncate_set(swigCPtr, value);
    } 
    get {
      uint ret = libdb_csharpPINVOKE.DB_COMPACT_compact_truncate_get(swigCPtr);
      return ret;
    } 
  }

  internal DB_COMPACT() : this(libdb_csharpPINVOKE.new_DB_COMPACT(), true) {
  }

}

}