예제 #1
0
 public stringvector(stringvector other) : this(CSharpWrapperPINVOKE.new_stringvector__SWIG_1(stringvector.getCPtr(other)), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public stringvector(int capacity) : this(CSharpWrapperPINVOKE.new_stringvector__SWIG_2(capacity), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public messageBroker(nodeConfig _conf) : this(CSharpWrapperPINVOKE.new_messageBroker(nodeConfig.getCPtr(_conf)), true)
 {
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 public void Add(string x)
 {
     CSharpWrapperPINVOKE.stringvector_Add(swigCPtr, x);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public void leaveRoom(string roomId)
 {
     CSharpWrapperPINVOKE.messageBroker_leaveRoom(swigCPtr, roomId);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
 public void Insert(int index, string x)
 {
     CSharpWrapperPINVOKE.stringvector_Insert(swigCPtr, index, x);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #10
0
파일: B.cs 프로젝트: SaeedTaghavi/TestSWIG
 public virtual void SetA(A p)
 {
     CSharpWrapperPINVOKE.B_SetA(swigCPtr, A.getCPtr(p));
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #11
0
 public void RemoveAt(int index)
 {
     CSharpWrapperPINVOKE.stringvector_RemoveAt(swigCPtr, index);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #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();
     }
 }
예제 #13
0
 public void broadcast2Room(string roomId, string message)
 {
     CSharpWrapperPINVOKE.messageBroker_broadcast2Room(swigCPtr, roomId, message);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #14
0
 private void setitem(int index, string val)
 {
     CSharpWrapperPINVOKE.stringvector_setitem(swigCPtr, index, val);
     if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #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);
        }
예제 #16
0
파일: A.cs 프로젝트: SaeedTaghavi/TestSWIG
        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);
        }
예제 #17
0
        public int LastIndexOf(string value)
        {
            int ret = CSharpWrapperPINVOKE.stringvector_LastIndexOf(swigCPtr, value);

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

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

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #20
0
파일: B.cs 프로젝트: SaeedTaghavi/TestSWIG
        public virtual string CallA()
        {
            string ret = CSharpWrapperPINVOKE.B_CallA(swigCPtr);

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
   }
 }
예제 #24
0
파일: A.cs 프로젝트: SaeedTaghavi/TestSWIG
 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);
 }
예제 #25
0
파일: A.cs 프로젝트: SaeedTaghavi/TestSWIG
 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();
     }
 }
예제 #26
0
파일: B.cs 프로젝트: SaeedTaghavi/TestSWIG
 public B() : this(CSharpWrapperPINVOKE.new_B(), true)
 {
 }
예제 #27
0
 public nodeConfig() : this(CSharpWrapperPINVOKE.new_nodeConfig(), true)
 {
 }
예제 #28
0
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("handle", swigMethodTypes0))
     swigDelegate0 = new SwigDelegatemessageHandler_0(SwigDirectorhandle);
   CSharpWrapperPINVOKE.messageHandler_director_connect(swigCPtr, swigDelegate0);
 }
예제 #29
0
 public messageHandler() : this(CSharpWrapperPINVOKE.new_messageHandler(), true) {
   SwigDirectorConnect();
 }
예제 #30
0
 public virtual void handle(string m) {
   CSharpWrapperPINVOKE.messageHandler_handle(swigCPtr, m);
   if (CSharpWrapperPINVOKE.SWIGPendingException.Pending) throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
 }