AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
StringElement.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 StringElement : Element {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal StringElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.StringElement_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StringElement obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
24  ~StringElement() {
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 StringElement Cast(Element element) {
43  global::System.IntPtr cPtr = SharingClientPINVOKE.StringElement_Cast(Element.getCPtr(element));
44  StringElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new StringElement(cPtr, true);
45  return ret;
46  }
47 
48  public virtual XString GetValue() {
49  global::System.IntPtr cPtr = SharingClientPINVOKE.StringElement_GetValue(swigCPtr);
50  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
51  return ret;
52  }
53 
54  public virtual void SetValue(XString newString) {
55  SharingClientPINVOKE.StringElement_SetValue(swigCPtr, XString.getCPtr(newString));
56  }
57 
58 }
59 
60 }
static global::System.IntPtr StringElement_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_StringElement(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void SetValue(XString newString)
static void StringElement_SetValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static StringElement Cast(Element element)
static global::System.IntPtr StringElement_SWIGUpcast(global::System.IntPtr jarg1)
static global::System.IntPtr StringElement_GetValue(global::System.Runtime.InteropServices.HandleRef jarg1)