AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
StringArrayElement.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace HoloToolkit.Sharing {
12 
13 public class StringArrayElement : Element {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal StringArrayElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.StringArrayElement_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StringArrayElement obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
25  Dispose();
26  }
27 
28  public override void Dispose() {
29  lock(this) {
30  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31  if (swigCMemOwn) {
32  swigCMemOwn = false;
34  }
35  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36  }
37  global::System.GC.SuppressFinalize(this);
38  base.Dispose();
39  }
40  }
41 
42  public static StringArrayElement Cast(Element element) {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.StringArrayElement_Cast(Element.getCPtr(element));
44  StringArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new StringArrayElement(cPtr, true);
45  return ret;
46  }
47 
48  public virtual int GetCount() {
50  return ret;
51  }
52 
53  public virtual XString GetValue(int index) {
54  global::System.IntPtr cPtr = SharingClientPINVOKE.StringArrayElement_GetValue(swigCPtr, index);
55  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
56  return ret;
57  }
58 
59  public virtual void SetValue(int index, XString newValue) {
60  SharingClientPINVOKE.StringArrayElement_SetValue(swigCPtr, index, XString.getCPtr(newValue));
61  }
62 
63  public virtual void InsertValue(int index, XString value) {
64  SharingClientPINVOKE.StringArrayElement_InsertValue(swigCPtr, index, XString.getCPtr(value));
65  }
66 
67  public virtual void RemoveValue(int index) {
69  }
70 
71  public virtual void AddListener(StringArrayListener newListener) {
73  }
74 
75  public virtual void RemoveListener(StringArrayListener oldListener) {
77  }
78 
79 }
80 
81 }
static void StringArrayElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr StringArrayElement_SWIGUpcast(global::System.IntPtr jarg1)
static void StringArrayElement_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void InsertValue(int index, XString value)
virtual void AddListener(StringArrayListener newListener)
static void StringArrayElement_RemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
virtual void RemoveListener(StringArrayListener oldListener)
static StringArrayElement Cast(Element element)
static global::System.IntPtr StringArrayElement_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static int StringArrayElement_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr StringArrayElement_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_StringArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void SetValue(int index, XString newValue)
static void StringArrayElement_InsertValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void StringArrayElement_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)