Sfoglia il codice sorgente

#序列化模块设置获取参数数量

zxs 1 giorno fa
parent
commit
1d2eea8ca5
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      robot/robotics/serialization.hpp

+ 7 - 0
robot/robotics/serialization.hpp

@@ -598,6 +598,13 @@ namespace robotics {
                 stream& operator >>(std::tuple<_Args...>& value) {
                     return deserialize(value);
                 }
+                /**
+                 * @brief 返回参数数量。
+                 * @return 数量。
+                 */
+                int count() {
+					return count_param(data_);
+                }
             private:
                 /**
                  * @brief 数据