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