31 const std::string & prefix_name,
const std::string & interface_name,
32 double * value_ptr =
nullptr)
33 : prefix_name_(prefix_name), interface_name_(interface_name), value_ptr_(value_ptr)
38 : interface_name_(interface_name), value_ptr_(
nullptr)
43 : interface_name_(interface_name), value_ptr_(
nullptr)
58 inline operator bool()
const {
return value_ptr_ !=
nullptr; }
60 const std::string get_name()
const {
return prefix_name_ +
"/" + interface_name_; }
62 const std::string & get_interface_name()
const {
return interface_name_; }
65 "Replaced by get_name method, which is semantically more correct")]]
const std::string
71 const std::string & get_prefix_name()
const {
return prefix_name_; }
73 double get_value()
const
75 THROW_ON_NULLPTR(value_ptr_);
80 std::string prefix_name_;
81 std::string interface_name_;
89 const std::string & prefix_name,
const std::string & interface_name,
90 double * value_ptr =
nullptr)
109 void set_value(
double value)
111 THROW_ON_NULLPTR(this->value_ptr_);
112 *this->value_ptr_ = value;