AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
ObjectElement.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 ObjectElement : Element {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal ObjectElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.ObjectElement_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ObjectElement obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
24  ~ObjectElement() {
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 ObjectElement Cast(Element element) {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_Cast(Element.getCPtr(element));
44  ObjectElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);
45  return ret;
46  }
47 
48  public virtual BoolElement CreateBoolElement(XString name, bool value) {
49  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateBoolElement(swigCPtr, XString.getCPtr(name), value);
50  BoolElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new BoolElement(cPtr, true);
51  return ret;
52  }
53 
54  public virtual IntElement CreateIntElement(XString name, int value) {
55  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateIntElement(swigCPtr, XString.getCPtr(name), value);
56  IntElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntElement(cPtr, true);
57  return ret;
58  }
59 
60  public virtual LongElement CreateLongElement(XString name, long value) {
61  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateLongElement(swigCPtr, XString.getCPtr(name), value);
62  LongElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new LongElement(cPtr, true);
63  return ret;
64  }
65 
66  public virtual FloatElement CreateFloatElement(XString name, float value) {
67  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateFloatElement(swigCPtr, XString.getCPtr(name), value);
68  FloatElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new FloatElement(cPtr, true);
69  return ret;
70  }
71 
72  public virtual DoubleElement CreateDoubleElement(XString name, double value) {
73  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateDoubleElement(swigCPtr, XString.getCPtr(name), value);
74  DoubleElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new DoubleElement(cPtr, true);
75  return ret;
76  }
77 
78  public virtual StringElement CreateStringElement(XString name, XString value) {
79  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateStringElement(swigCPtr, XString.getCPtr(name), XString.getCPtr(value));
80  StringElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new StringElement(cPtr, true);
81  return ret;
82  }
83 
84  public virtual ObjectElement CreateObjectElement(XString name, XString objectType, User owner) {
85  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateObjectElement__SWIG_0(swigCPtr, XString.getCPtr(name), XString.getCPtr(objectType), User.getCPtr(owner));
86  ObjectElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);
87  return ret;
88  }
89 
90  public virtual ObjectElement CreateObjectElement(XString name, XString objectType) {
91  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateObjectElement__SWIG_1(swigCPtr, XString.getCPtr(name), XString.getCPtr(objectType));
92  ObjectElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new ObjectElement(cPtr, true);
93  return ret;
94  }
95 
97  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateIntArrayElement(swigCPtr, XString.getCPtr(name));
98  IntArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntArrayElement(cPtr, true);
99  return ret;
100  }
101 
103  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateFloatArrayElement(swigCPtr, XString.getCPtr(name));
104  FloatArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new FloatArrayElement(cPtr, true);
105  return ret;
106  }
107 
109  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_CreateStringArrayElement(swigCPtr, XString.getCPtr(name));
110  StringArrayElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new StringArrayElement(cPtr, true);
111  return ret;
112  }
113 
114  public virtual int GetElementCount() {
116  return ret;
117  }
118 
119  public virtual Element GetElement(long id) {
120  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_GetElement__SWIG_0(swigCPtr, id);
121  Element ret = (cPtr == global::System.IntPtr.Zero) ? null : new Element(cPtr, true);
122  return ret;
123  }
124 
125  public virtual Element GetElement(XString name) {
126  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_GetElement__SWIG_1(swigCPtr, XString.getCPtr(name));
127  Element ret = (cPtr == global::System.IntPtr.Zero) ? null : new Element(cPtr, true);
128  return ret;
129  }
130 
131  public virtual Element GetElementAt(int index) {
132  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_GetElementAt(swigCPtr, index);
133  Element ret = (cPtr == global::System.IntPtr.Zero) ? null : new Element(cPtr, true);
134  return ret;
135  }
136 
137  public virtual void RemoveElement(Element element) {
139  }
140 
141  public virtual void RemoveElement(long id) {
143  }
144 
145  public virtual void RemoveElementAt(int index) {
147  }
148 
149  public virtual void AddListener(ObjectElementListener newListener) {
151  }
152 
153  public virtual void RemoveListener(ObjectElementListener oldListener) {
155  }
156 
157  public virtual int GetOwnerID() {
159  return ret;
160  }
161 
162  public virtual XString GetObjectType() {
163  global::System.IntPtr cPtr = SharingClientPINVOKE.ObjectElement_GetObjectType(swigCPtr);
164  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
165  return ret;
166  }
167 
168 }
169 
170 }
virtual IntElement CreateIntElement(XString name, int value)
static int ObjectElement_GetOwnerID(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void RemoveListener(ObjectElementListener oldListener)
static void ObjectElement_RemoveElement__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ObjectElement_GetObjectType(global::System.Runtime.InteropServices.HandleRef jarg1)
static ObjectElement Cast(Element element)
virtual Element GetElement(long id)
virtual void RemoveElement(Element element)
static global::System.IntPtr ObjectElement_GetElement__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_ObjectElement(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual LongElement CreateLongElement(XString name, long value)
virtual DoubleElement CreateDoubleElement(XString name, double value)
static global::System.IntPtr ObjectElement_CreateBoolElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg3)
virtual IntArrayElement CreateIntArrayElement(XString name)
static void ObjectElement_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ObjectElement_GetElement__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
virtual void AddListener(ObjectElementListener newListener)
static global::System.IntPtr ObjectElement_CreateStringArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ObjectElement_CreateIntElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static global::System.IntPtr ObjectElement_CreateObjectElement__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void ObjectElement_RemoveElementAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr ObjectElement_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ObjectElement_CreateFloatArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int ObjectElement_GetElementCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ObjectElement_CreateLongElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
virtual FloatArrayElement CreateFloatArrayElement(XString name)
static global::System.IntPtr ObjectElement_CreateDoubleElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
virtual Element GetElementAt(int index)
static void ObjectElement_RemoveElement__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
virtual void RemoveElement(long id)
static global::System.IntPtr ObjectElement_CreateObjectElement__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr ObjectElement_SWIGUpcast(global::System.IntPtr jarg1)
static global::System.IntPtr ObjectElement_CreateFloatElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3)
virtual StringArrayElement CreateStringArrayElement(XString name)
virtual ObjectElement CreateObjectElement(XString name, XString objectType, User owner)
static global::System.IntPtr ObjectElement_CreateIntArrayElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void RemoveElementAt(int index)
virtual FloatElement CreateFloatElement(XString name, float value)
static global::System.IntPtr ObjectElement_GetElementAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr ObjectElement_CreateStringElement(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual StringElement CreateStringElement(XString name, XString value)
virtual BoolElement CreateBoolElement(XString name, bool value)
virtual Element GetElement(XString name)
virtual ObjectElement CreateObjectElement(XString name, XString objectType)
static void ObjectElement_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)