26class LoanedCommandInterface
29 using Deleter = std::function<void(
void)>;
32 : LoanedCommandInterface(command_interface,
nullptr)
36 LoanedCommandInterface(
CommandInterface & command_interface, Deleter && deleter)
37 : command_interface_(command_interface), deleter_(std::forward<Deleter>(deleter))
41 LoanedCommandInterface(
const LoanedCommandInterface & other) =
delete;
43 LoanedCommandInterface(LoanedCommandInterface && other) =
default;
45 virtual ~LoanedCommandInterface()
53 const std::string get_name()
const {
return command_interface_.get_name(); }
55 const std::string & get_interface_name()
const {
return command_interface_.get_interface_name(); }
58 "Replaced by get_name method, which is semantically more correct")]]
const std::string
61 return command_interface_.get_name();
64 const std::string & get_prefix_name()
const {
return command_interface_.get_prefix_name(); }
66 void set_value(
double val) { command_interface_.set_value(val); }
68 double get_value()
const {
return command_interface_.get_value(); }