Example #1
0
 public stringvector(stringvector other) : this(CSharpWrapperPINVOKE.new_stringvector__SWIG_1(stringvector.getCPtr(other)), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public stringvector(int capacity) : this(CSharpWrapperPINVOKE.new_stringvector__SWIG_2(capacity), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public messageBroker(nodeConfig _conf) : this(CSharpWrapperPINVOKE.new_messageBroker(nodeConfig.getCPtr(_conf)), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void Add(string x)
 {
     CSharpWrapperPINVOKE.stringvector_Add(swigCPtr, x);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public void leaveRoom(string roomId)
 {
     CSharpWrapperPINVOKE.messageBroker_leaveRoom(swigCPtr, roomId);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public void Insert(int index, string x)
 {
     CSharpWrapperPINVOKE.stringvector_Insert(swigCPtr, index, x);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public void Reverse(int index, int count)
 {
     CSharpWrapperPINVOKE.stringvector_Reverse__SWIG_1(swigCPtr, index, count);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
0
 public void SetRange(int index, stringvector values)
 {
     CSharpWrapperPINVOKE.stringvector_SetRange(swigCPtr, index, stringvector.getCPtr(values));
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #9
0
 public void send2client(string clientId, string roomId, string message)
 {
     CSharpWrapperPINVOKE.messageBroker_send2client(swigCPtr, clientId, roomId, message);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #10
0
 public virtual void SetA(A p)
 {
     CSharpWrapperPINVOKE.B_SetA(swigCPtr, A.getCPtr(p));
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #11
0
 public void RemoveAt(int index)
 {
     CSharpWrapperPINVOKE.stringvector_RemoveAt(swigCPtr, index);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #12
0
 public void addCallbackToRoom(string roomId, messageHandler callback)
 {
     CSharpWrapperPINVOKE.messageBroker_addCallbackToRoom(swigCPtr, roomId, messageHandler.getCPtr(callback));
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #13
0
 public void broadcast2Room(string roomId, string message)
 {
     CSharpWrapperPINVOKE.messageBroker_broadcast2Room(swigCPtr, roomId, message);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #14
0
 private void setitem(int index, string val)
 {
     CSharpWrapperPINVOKE.stringvector_setitem(swigCPtr, index, val);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #15
0
        public stringvector getNodeIds(string arg0)
        {
            stringvector ret = new stringvector(CSharpWrapperPINVOKE.messageBroker_getNodeIds(swigCPtr, arg0), true);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #16
0
        public virtual string SayHello()
        {
            string ret = (SwigDerivedClassHasMethod("SayHello", swigMethodTypes1) ? CSharpWrapperPINVOKE.A_SayHelloSwigExplicitA(swigCPtr) : CSharpWrapperPINVOKE.A_SayHello(swigCPtr));

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #17
0
        public int LastIndexOf(string value)
        {
            int ret = CSharpWrapperPINVOKE.stringvector_LastIndexOf(swigCPtr, value);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #18
0
        private string getitem(int index)
        {
            string ret = CSharpWrapperPINVOKE.stringvector_getitem(swigCPtr, index);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #19
0
        public bool Remove(string value)
        {
            bool ret = CSharpWrapperPINVOKE.stringvector_Remove(swigCPtr, value);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #20
0
        public virtual string CallA()
        {
            string ret = CSharpWrapperPINVOKE.B_CallA(swigCPtr);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #21
0
        public stringvector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = CSharpWrapperPINVOKE.stringvector_GetRange(swigCPtr, index, count);
            stringvector          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new stringvector(cPtr, true);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #22
0
        public static stringvector Repeat(string value, int count)
        {
            global::System.IntPtr cPtr = CSharpWrapperPINVOKE.stringvector_Repeat(value, count);
            stringvector          ret  = (cPtr == global::System.IntPtr.Zero) ? null : new stringvector(cPtr, true);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #23
0
 public virtual void Dispose() {
   lock(this) {
     if (swigCPtr.Handle != global::System.IntPtr.Zero) {
       if (swigCMemOwnBase) {
         swigCMemOwnBase = false;
         CSharpWrapperPINVOKE.delete_messageHandler(swigCPtr);
       }
       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
     }
     global::System.GC.SuppressFinalize(this);
   }
 }
Example #24
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("SetName", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateA_0(SwigDirectorSetName);
     }
     if (SwigDerivedClassHasMethod("SayHello", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateA_1(SwigDirectorSayHello);
     }
     CSharpWrapperPINVOKE.A_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
 }
Example #25
0
 public virtual void SetName(string n)
 {
     if (SwigDerivedClassHasMethod("SetName", swigMethodTypes0))
     {
         CSharpWrapperPINVOKE.A_SetNameSwigExplicitA(swigCPtr, n);
     }
     else
     {
         CSharpWrapperPINVOKE.A_SetName(swigCPtr, n);
     }
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #26
0
 public B() : this(CSharpWrapperPINVOKE.new_B(), true)
 {
 }
Example #27
0
 public nodeConfig() : this(CSharpWrapperPINVOKE.new_nodeConfig(), true)
 {
 }
Example #28
0
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("handle", swigMethodTypes0))
     swigDelegate0 = new SwigDelegatemessageHandler_0(SwigDirectorhandle);
   CSharpWrapperPINVOKE.messageHandler_director_connect(swigCPtr, swigDelegate0);
 }
Example #29
0
 public messageHandler() : this(CSharpWrapperPINVOKE.new_messageHandler(), true) {
   SwigDirectorConnect();
 }
Example #30
0
 public virtual void handle(string m) {
   CSharpWrapperPINVOKE.messageHandler_handle(swigCPtr, m);
   if (CSharpWrapperPINVOKE.SWIGPendingException.Pending) throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
 }