28 #ifndef ROSCPP_SERVICE_CLIENT_OPTIONS_H 29 #define ROSCPP_SERVICE_CLIENT_OPTIONS_H 58 , persistent(_persistent)
71 template <
class MReq,
class MRes>
72 void init(
const std::string& _service,
bool _persistent,
const M_string& _header)
74 namespace st = service_traits;
77 md5sum = st::md5sum<MReq>();
78 persistent = _persistent;
89 template <
class Service>
90 void init(
const std::string& _service,
bool _persistent,
const M_string& _header)
92 namespace st = service_traits;
95 md5sum = st::md5sum<Service>();
96 persistent = _persistent;
Encapsulates all options available for creating a ServiceClient.
std::string md5sum
Service md5sum.
ServiceClientOptions(const std::string &_service, const std::string &_md5sum, bool _persistent, const M_string &_header)
std::map< std::string, std::string > M_string
std::string service
Service to connect to.
void init(const std::string &_service, bool _persistent, const M_string &_header)
bool persistent
Whether or not the connection should persist.
void init(const std::string &_service, bool _persistent, const M_string &_header)
M_string header
Extra key/value pairs to add to the connection header.