/* ----------------------------------------------------------------------------
 * 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 OBSymmetryData : OBGenericData {
  private HandleRef swigCPtr;

  internal OBSymmetryData(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBSymmetryDataUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

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

  ~OBSymmetryData() {
    Dispose();
  }

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

  public OBSymmetryData() : this(openbabelPINVOKE.new_OBSymmetryData__SWIG_0(), true) {
  }

  public OBSymmetryData(OBSymmetryData arg0) : this(openbabelPINVOKE.new_OBSymmetryData__SWIG_1(OBSymmetryData.getCPtr(arg0)), true) {
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetData(string pg, string sg) {
    openbabelPINVOKE.OBSymmetryData_SetData__SWIG_0(swigCPtr, pg, sg);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetData(string pg) {
    openbabelPINVOKE.OBSymmetryData_SetData__SWIG_1(swigCPtr, pg);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetPointGroup(string pg) {
    openbabelPINVOKE.OBSymmetryData_SetPointGroup(swigCPtr, pg);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public void SetSpaceGroup(string sg) {
    openbabelPINVOKE.OBSymmetryData_SetSpaceGroup(swigCPtr, sg);
    if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
  }

  public string GetPointGroup() {
    string ret = openbabelPINVOKE.OBSymmetryData_GetPointGroup(swigCPtr);
    return ret;
  }

  public string GetSpaceGroup() {
    string ret = openbabelPINVOKE.OBSymmetryData_GetSpaceGroup(swigCPtr);
    return ret;
  }

}
