31 const std::string & name,
const std::string & interface_name,
double * value_ptr =
nullptr)
32 : name_(name), interface_name_(interface_name), value_ptr_(value_ptr)
37 : interface_name_(interface_name), value_ptr_(
nullptr)
42 : interface_name_(interface_name), value_ptr_(
nullptr)
57 inline operator bool()
const {
return value_ptr_ !=
nullptr; }
59 const std::string & get_name()
const {
return name_; }
61 const std::string & get_interface_name()
const {
return interface_name_; }
63 const std::string get_full_name()
const {
return name_ +
"/" + interface_name_; }
65 double get_value()
const
67 THROW_ON_NULLPTR(value_ptr_);
73 std::string interface_name_;