hasParam() public method

public hasParam ( String caller_id, String key ) : bool
caller_id String
key String
return bool
示例#1
0
        /// <summary>
        /// Check whether a parameter exists
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public void hasParam([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "hasParam");

            String caller_id = parm[0].GetString();
            String topic     = parm[1].GetString();

            res.Set(2, handler.hasParam(caller_id, topic));
        }
示例#2
0
文件: Master.cs 项目: wiwing/ROS.NET
        /// <summary>
        /// Check whether a parameter exists
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public XmlRpcValue hasParam(String caller_id, String topic)
        {
            XmlRpcValue res = new XmlRpcValue();//XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "hasParam");

            //String caller_id = parm[0].GetString();
            //String topic = parm[1].GetString();

            res.Set(2, handler.hasParam(caller_id, topic));
            return(res);
        }