39 virtual bool hasParam(
const std::string& name)
const noexcept = 0;
54 virtual std::shared_ptr<GetParamAdapter>
getNamespaced(
const std::string& ns)
const noexcept(
false) = 0;
virtual ~GetParamAdapter()=default
::std::shared_ptr<::cras::GetParamAdapter > GetParamAdapterPtr
An adapter that allows getting ROS parameters from various sources.
virtual std::shared_ptr< GetParamAdapter > getNamespaced(const std::string &ns) const noexcept(false)=0
Construct another adapter whose source are parameters that are in a sub-namespace of this adapter...
virtual bool hasParam(const std::string &name) const noexcept=0
Return whether this adapter is able to get a value of the given parameter.
virtual std::string getNamespace() const noexcept=0
Get the namespace of this adapter. It should somehow represent the source of the parameters.
virtual bool getParam(const std::string &name, XmlRpc::XmlRpcValue &value) const noexcept=0
Get the value of a parameter as XmlRpcValue.