AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
ClientConfig.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 ClientConfig : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal ClientConfig(global::System.IntPtr cPtr, bool cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20  }
21 
22  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClientConfig obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~ClientConfig() {
27  Dispose();
28  }
29 
30  public virtual void Dispose() {
31  lock(this) {
32  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
36  }
37  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38  }
39  global::System.GC.SuppressFinalize(this);
40  }
41  }
42 
43  public ClientConfig(ClientRole role) : this(SharingClientPINVOKE.new_ClientConfig((int)role), true) {
44  }
45 
46  public ClientRole GetRole() {
48  return ret;
49  }
50 
51  public string GetServerAddress() {
53  return ret;
54  }
55 
56  public bool SetServerAddress(string serverAddress) {
57  bool ret = SharingClientPINVOKE.ClientConfig_SetServerAddress(swigCPtr, serverAddress);
59  return ret;
60  }
61 
62  public int GetServerPort() {
64  return ret;
65  }
66 
67  public bool SetServerPort(int port) {
68  bool ret = SharingClientPINVOKE.ClientConfig_SetServerPort(swigCPtr, port);
69  return ret;
70  }
71 
73  global::System.IntPtr cPtr = SharingClientPINVOKE.ClientConfig_GetLogWriter(swigCPtr);
74  LogWriter ret = (cPtr == global::System.IntPtr.Zero) ? null : new LogWriter(cPtr, false);
75  return ret;
76  }
77 
78  public void SetLogWriter(LogWriter logger) {
79  SharingClientPINVOKE.ClientConfig_SetLogWriter(swigCPtr, LogWriter.getCPtr(logger));
80  }
81 
82  public bool GetIsAudioEndpoint() {
84  return ret;
85  }
86 
87  public void SetIsAudioEndpoint(bool isAudioEndpoint) {
88  SharingClientPINVOKE.ClientConfig_SetIsAudioEndpoint(swigCPtr, isAudioEndpoint);
89  }
90 
91  public bool GetProfilerEnabled() {
93  return ret;
94  }
95 
96  public void SetProfilerEnabled(bool enabled) {
98  }
99 
100 }
101 
102 }
static int ClientConfig_GetServerPort(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool ClientConfig_SetServerAddress(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2)
static int ClientConfig_GetRole(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ClientConfig_GetLogWriter(global::System.Runtime.InteropServices.HandleRef jarg1)
bool SetServerAddress(string serverAddress)
Definition: ClientConfig.cs:56
void SetLogWriter(LogWriter logger)
Definition: ClientConfig.cs:78
static bool ClientConfig_GetIsAudioEndpoint(global::System.Runtime.InteropServices.HandleRef jarg1)
void SetIsAudioEndpoint(bool isAudioEndpoint)
Definition: ClientConfig.cs:87
void SetProfilerEnabled(bool enabled)
Definition: ClientConfig.cs:96
static void ClientConfig_SetProfilerEnabled(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg2)
static bool ClientConfig_SetServerPort(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void ClientConfig_SetLogWriter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_ClientConfig(global::System.Runtime.InteropServices.HandleRef jarg1)
static string ClientConfig_GetServerAddress(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool ClientConfig_GetProfilerEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ClientConfig_SetIsAudioEndpoint(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg2)