|
@@ -700,6 +700,21 @@ namespace robotics {
|
|
|
void add_follow(std::vector<std::string> const& values) {
|
|
|
follow_list_ = values;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * @brief 获取父节点信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ std::pair<std::string, std::string> get_parent() {
|
|
|
+ return std::pair(parent_code_, parent_name_);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * @brief 获取用户信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ std::pair<std::string, std::string> get_user() {
|
|
|
+ auto config = nexus_net_config::read();
|
|
|
+ return std::pair(config.user.code, config.user.name);
|
|
|
+ }
|
|
|
/**
|
|
|
* @brief 添加订阅
|
|
|
* @tparam _Fn
|