Beispiel #1
0
        public override bool Equals(object v2)
        {
            RobotRaconteurVersion v2_1 = v2 as RobotRaconteurVersion;

            if (v2_1 == null)
            {
                return(false);
            }

            return(RobotRaconteurNET.RobotRaconteurVersion_eq(this, v2_1));
        }
Beispiel #2
0
        public ServiceSubscription SubscribeServiceByType(string[] service_types, ServiceSubscriptionFilter filter = null)
        {
            var filter2 = SubscribeService_LoadFilter(filter);

            var service_types2 = new vectorstring();

            foreach (string s in service_types)
            {
                service_types2.Add(s);
            }

            var sub1 = RobotRaconteurNET.WrappedSubscribeServiceByType(this, service_types2, filter2);

            return(new ServiceSubscription(sub1));
        }
Beispiel #3
0
        public virtual void RetrieveSubArray(uint[] memorypos, PodMultiDimArray buffer, uint[] bufferpos, uint[] count)
        {
            PodMultiDimArray mema = this;
            PodMultiDimArray memb = buffer;

            MultiDimArray_CalculateCopyIndicesIter iter = RobotRaconteurNET.MultiDimArray_CalculateCopyIndicesBeginIter(new vectoruint32(mema.Dims), new vectoruint32(memorypos), new vectoruint32(memb.Dims), new vectoruint32(bufferpos), new vectoruint32(count));

            uint indexa;
            uint indexb;
            uint len;

            while (iter.Next(out indexa, out indexb, out len))
            {
                Array.Copy(mema.pod_array, (long)indexa, memb.pod_array, (long)indexb, (long)len);
            }
        }
Beispiel #4
0
        public ServiceSubscription SubscribeService(string[] url, string username           = null,
                                                    Dictionary <string, object> credentials = null, string objecttype = null)
        {
            MessageElementData credentials2 = null;

            try
            {
                if (username == null)
                {
                    username = "";
                }
                if (credentials != null)
                {
                    credentials2 = (MessageElementData)PackVarType(credentials);
                }

                if (objecttype == null)
                {
                    objecttype = "";
                }
                vectorstring url2 = new vectorstring();
                foreach (string ss in url)
                {
                    url2.Add(ss);
                }

                var sub1 = RobotRaconteurNET.WrappedSubscribeService(this, url2, username, credentials2, objecttype);
                return(new ServiceSubscription(sub1));
            }
            finally
            {
                if (credentials2 != null)
                {
                    credentials2.Dispose();
                }
            }
        }
Beispiel #5
0
 public static bool operator !=(RobotRaconteurVersion v1, RobotRaconteurVersion v2)
 {
     return(RobotRaconteurNET.RobotRaconteurVersion_ne(v1, v2));
 }