1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
11
using System.Runtime.InteropServices;
13
public class OBBase : IDisposable {
14
private HandleRef swigCPtr;
15
protected bool swigCMemOwn;
17
internal OBBase(IntPtr cPtr, bool cMemoryOwn) {
18
swigCMemOwn = cMemoryOwn;
19
swigCPtr = new HandleRef(this, cPtr);
22
internal static HandleRef getCPtr(OBBase obj) {
23
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30
public virtual void Dispose() {
32
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
34
openbabelPINVOKE.delete_OBBase(swigCPtr);
36
swigCPtr = new HandleRef(null, IntPtr.Zero);
37
GC.SuppressFinalize(this);
41
public virtual bool Clear() {
42
bool ret = openbabelPINVOKE.OBBase_Clear(swigCPtr);
46
public virtual OBBase DoTransformations(SWIGTYPE_p_std__mapT_std__string_std__string_t arg0) {
47
IntPtr cPtr = openbabelPINVOKE.OBBase_DoTransformations(swigCPtr, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(arg0));
48
OBBase ret = (cPtr == IntPtr.Zero) ? null : new OBBase(cPtr, false);
52
public static string ClassDescription() {
53
string ret = openbabelPINVOKE.OBBase_ClassDescription();
57
public bool HasData(string arg0) {
58
bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_0(swigCPtr, arg0);
59
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
63
public bool HasData(uint type) {
64
bool ret = openbabelPINVOKE.OBBase_HasData__SWIG_2(swigCPtr, type);
68
public void DeleteData(uint type) {
69
openbabelPINVOKE.OBBase_DeleteData__SWIG_0(swigCPtr, type);
72
public void DeleteData(OBGenericData arg0) {
73
openbabelPINVOKE.OBBase_DeleteData__SWIG_1(swigCPtr, OBGenericData.getCPtr(arg0));
76
public void DeleteData(vectorData arg0) {
77
openbabelPINVOKE.OBBase_DeleteData__SWIG_2(swigCPtr, vectorData.getCPtr(arg0));
78
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
81
public bool DeleteData(string s) {
82
bool ret = openbabelPINVOKE.OBBase_DeleteData__SWIG_3(swigCPtr, s);
83
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
87
public void SetData(OBGenericData d) {
88
openbabelPINVOKE.OBBase_SetData(swigCPtr, OBGenericData.getCPtr(d));
91
public void CloneData(OBGenericData d) {
92
openbabelPINVOKE.OBBase_CloneData(swigCPtr, OBGenericData.getCPtr(d));
95
public uint DataSize() {
96
uint ret = openbabelPINVOKE.OBBase_DataSize(swigCPtr);
100
public OBGenericData GetData(uint type) {
101
IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_0(swigCPtr, type);
102
OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
106
public OBGenericData GetData(string arg0) {
107
IntPtr cPtr = openbabelPINVOKE.OBBase_GetData__SWIG_1(swigCPtr, arg0);
108
OBGenericData ret = (cPtr == IntPtr.Zero) ? null : new OBGenericData(cPtr, false);
109
if (openbabelPINVOKE.SWIGPendingException.Pending) throw openbabelPINVOKE.SWIGPendingException.Retrieve();
113
public vectorData GetAllData(uint type) {
114
vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetAllData(swigCPtr, type), true);
118
public vectorData GetData() {
119
vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_3(swigCPtr), false);
123
public vectorData GetData(DataOrigin source) {
124
vectorData ret = new vectorData(openbabelPINVOKE.OBBase_GetData__SWIG_4(swigCPtr, (int)source), true);
128
public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator BeginData() {
129
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);
133
public SWIGTYPE_p_std__vectorT_OpenBabel__OBGenericData_p_t__iterator EndData() {
134
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);
138
public OBBase() : this(openbabelPINVOKE.new_OBBase(), true) {