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 }
cras::GetParamAdapter
An adapter that allows getting ROS parameters from various sources.
Definition: get_param_adapter.hpp:22
cras::XmlRpcValueGetParamAdapter::baseParam
::XmlRpc::XmlRpcValue baseParam
Definition: xmlrpc_value.hpp:39
cras
Definition: any.hpp:15
cras::XmlRpcValueGetParamAdapter::getParam
bool getParam(const ::std::string &name, ::XmlRpc::XmlRpcValue &v) const noexcept override
cras::XmlRpcValueGetParamAdapter::getNamespaced
::std::shared_ptr<::cras::GetParamAdapter > getNamespaced(const ::std::string &ns) const noexcept(false) override
get_param_adapter.hpp
An adapter that allows getting ROS parameters from various sources.
cras::XmlRpcValueGetParamAdapter::hasParam
bool hasParam(const ::std::string &name) const noexcept override
XmlRpcValue.h
cras::XmlRpcValueGetParamAdapter
Definition: xmlrpc_value.hpp:21
cras::XmlRpcValueGetParamAdapter::XmlRpcValueGetParamAdapter
XmlRpcValueGetParamAdapter(const ::XmlRpc::XmlRpcValue &baseParam, const ::std::string &baseNamespace)
Create a GetParamAdapter that reads parameters from baseParam (which needs to be struct).
cras::XmlRpcValueGetParamAdapter::getNamespace
::std::string getNamespace() const noexcept override
Get the namespace of this adapter. It should somehow represent the source of the parameters.
cras::XmlRpcValueGetParamAdapter::baseNamespace
::std::string baseNamespace
Definition: xmlrpc_value.hpp:40
XmlRpc::XmlRpcValue
cras::XmlRpcValueGetParamAdapter::~XmlRpcValueGetParamAdapter
~XmlRpcValueGetParamAdapter() override


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Dec 14 2024 03:51:04