xmlrpc_value.hpp
Go to the documentation of this file.
1 #pragma once
2 
11 #include <memory>
12 #include <string>
13 
14 #include <XmlRpcValue.h>
15 
17 
18 namespace cras
19 {
20 
22 {
23 public:
30  explicit XmlRpcValueGetParamAdapter(const ::XmlRpc::XmlRpcValue& baseParam, const ::std::string& baseNamespace);
31  ~XmlRpcValueGetParamAdapter() override;
32 
33  bool getParam(const ::std::string& name, ::XmlRpc::XmlRpcValue& v) const noexcept override;
34  bool hasParam(const ::std::string& name) const noexcept override;
35  ::std::string getNamespace() const noexcept override;
36  ::std::shared_ptr<::cras::GetParamAdapter> getNamespaced(const ::std::string &ns) const noexcept(false) override;
37 
38 protected:
40  ::std::string baseNamespace;
41 };
42 
43 }
bool getParam(const ::std::string &name, ::XmlRpc::XmlRpcValue &v) const noexcept override
::std::shared_ptr<::cras::GetParamAdapter > getNamespaced(const ::std::string &ns) const noexcept(false) override
bool hasParam(const ::std::string &name) const noexcept override
An adapter that allows getting ROS parameters from various sources.
XmlRpcValueGetParamAdapter(const ::XmlRpc::XmlRpcValue &baseParam, const ::std::string &baseNamespace)
Create a GetParamAdapter that reads parameters from baseParam (which needs to be struct).
::std::string getNamespace() const noexcept override
Get the namespace of this adapter. It should somehow represent the source of the parameters.
Definition: any.hpp:15
An adapter that allows getting ROS parameters from various sources.
::XmlRpc::XmlRpcValue baseParam


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53