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

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

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

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

            if (CSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
   }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 26
0
 public B() : this(CSharpWrapperPINVOKE.new_B(), true)
 {
 }
Ejemplo n.º 27
0
 public nodeConfig() : this(CSharpWrapperPINVOKE.new_nodeConfig(), true)
 {
 }
Ejemplo n.º 28
0
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("handle", swigMethodTypes0))
     swigDelegate0 = new SwigDelegatemessageHandler_0(SwigDirectorhandle);
   CSharpWrapperPINVOKE.messageHandler_director_connect(swigCPtr, swigDelegate0);
 }
Ejemplo n.º 29
0
 public messageHandler() : this(CSharpWrapperPINVOKE.new_messageHandler(), true) {
   SwigDirectorConnect();
 }
Ejemplo n.º 30
0
 public virtual void handle(string m) {
   CSharpWrapperPINVOKE.messageHandler_handle(swigCPtr, m);
   if (CSharpWrapperPINVOKE.SWIGPendingException.Pending) throw CSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
 }