From 7db5f3b2cfa1db42bd55fd156bc955b96ae1a9fd Mon Sep 17 00:00:00 2001 From: Raphael Grimm <raphael.grimm@kit.edu> Date: Thu, 13 Sep 2018 10:14:13 +0200 Subject: [PATCH] Add DeviceBase::rtGetDeviceName --- .../components/units/RobotUnit/Devices/DeviceBase.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/RobotAPI/components/units/RobotUnit/Devices/DeviceBase.h b/source/RobotAPI/components/units/RobotUnit/Devices/DeviceBase.h index fd54ec245..148369645 100644 --- a/source/RobotAPI/components/units/RobotUnit/Devices/DeviceBase.h +++ b/source/RobotAPI/components/units/RobotUnit/Devices/DeviceBase.h @@ -38,6 +38,8 @@ namespace armarx virtual ~DeviceBase() = default; /// @return The Device's name const std::string& getDeviceName() const; + /// @return The Device's name + const std::string& rtGetDeviceName() const; //tags /// @return Thes set of tags for this Device const std::set<std::string>& getTags() const; @@ -71,6 +73,11 @@ namespace armarx return deviceName; } + inline const std::string& DeviceBase::rtGetDeviceName() const + { + return deviceName; + } + inline const std::set<std::string>& DeviceBase::getTags() const { return tags; -- GitLab