1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.31
*
* 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 symbolSetObj : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal symbolSetObj(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(symbolSetObj obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~symbolSetObj() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
swigCMemOwn = false;
mapscriptPINVOKE.delete_symbolSetObj(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
GC.SuppressFinalize(this);
}
}
public string filename {
set {
mapscriptPINVOKE.symbolSetObj_filename_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
string ret = mapscriptPINVOKE.symbolSetObj_filename_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int imagecachesize {
set {
mapscriptPINVOKE.symbolSetObj_imagecachesize_set(swigCPtr, value);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
get {
int ret = mapscriptPINVOKE.symbolSetObj_imagecachesize_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int numsymbols {
get {
int ret = mapscriptPINVOKE.symbolSetObj_numsymbols_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public int maxsymbols {
get {
int ret = mapscriptPINVOKE.symbolSetObj_maxsymbols_get(swigCPtr);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
public symbolSetObj(string symbolfile) : this(mapscriptPINVOKE.new_symbolSetObj(symbolfile), true) {
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
}
public symbolObj getSymbol(int i) {
IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_getSymbol(swigCPtr, i);
symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public symbolObj getSymbolByName(string symbolname) {
IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_getSymbolByName(swigCPtr, symbolname);
symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int index(string symbolname) {
int ret = mapscriptPINVOKE.symbolSetObj_index(swigCPtr, symbolname);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int appendSymbol(symbolObj symbol) {
int ret = mapscriptPINVOKE.symbolSetObj_appendSymbol(swigCPtr, symbolObj.getCPtr(symbol));
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public symbolObj removeSymbol(int index) {
IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_removeSymbol(swigCPtr, index);
symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public int save(string filename) {
int ret = mapscriptPINVOKE.symbolSetObj_save(swigCPtr, filename);
if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
|