Manages an service advertisement. More...
#include <service_server.h>
Classes | |
class | Impl |
Public Member Functions | |
std::string | getService () const |
operator void * () const | |
bool | operator!= (const ServiceServer &rhs) const |
bool | operator< (const ServiceServer &rhs) const |
bool | operator== (const ServiceServer &rhs) const |
ServiceServer (const ServiceServer &rhs) | |
ServiceServer () | |
void | shutdown () |
Unadvertise the service associated with this ServiceServer. | |
~ServiceServer () | |
Private Types | |
typedef boost::shared_ptr< Impl > | ImplPtr |
typedef boost::weak_ptr< Impl > | ImplWPtr |
Private Member Functions | |
ServiceServer (const std::string &service, const NodeHandle &node_handle) | |
Private Attributes | |
ImplPtr | impl_ |
Friends | |
class | NodeHandle |
class | NodeHandleBackingCollection |
Manages an service advertisement.
A ServiceServer should always be created through a call to NodeHandle::advertiseService(), or copied from one that was. Once all copies of a specific ServiceServer go out of scope, the service associated with it will be unadvertised and the service callback will stop being called.
Definition at line 44 of file service_server.h.
typedef boost::shared_ptr<Impl> ros::ServiceServer::ImplPtr [private] |
Definition at line 98 of file service_server.h.
typedef boost::weak_ptr<Impl> ros::ServiceServer::ImplWPtr [private] |
Definition at line 99 of file service_server.h.
ros::ServiceServer::ServiceServer | ( | ) | [inline] |
Definition at line 47 of file service_server.h.
ros::ServiceServer::ServiceServer | ( | const ServiceServer & | rhs | ) |
Definition at line 69 of file service_server.cpp.
ros::ServiceServer::~ServiceServer | ( | ) |
Definition at line 74 of file service_server.cpp.
ros::ServiceServer::ServiceServer | ( | const std::string & | service, | |
const NodeHandle & | node_handle | |||
) | [private] |
Definition at line 62 of file service_server.cpp.
std::string ros::ServiceServer::getService | ( | ) | const |
Definition at line 86 of file service_server.cpp.
ros::ServiceServer::operator void * | ( | ) | const [inline] |
Definition at line 64 of file service_server.h.
bool ros::ServiceServer::operator!= | ( | const ServiceServer & | rhs | ) | const [inline] |
Definition at line 76 of file service_server.h.
bool ros::ServiceServer::operator< | ( | const ServiceServer & | rhs | ) | const [inline] |
Definition at line 66 of file service_server.h.
bool ros::ServiceServer::operator== | ( | const ServiceServer & | rhs | ) | const [inline] |
Definition at line 71 of file service_server.h.
void ros::ServiceServer::shutdown | ( | ) |
Unadvertise the service associated with this ServiceServer.
This method usually does not need to be explicitly called, as automatic shutdown happens when all copies of this ServiceServer go out of scope
This method overrides the automatic reference counted unadvertise, and immediately unadvertises the service associated with this ServiceServer
Definition at line 78 of file service_server.cpp.
friend class NodeHandle [friend] |
Definition at line 103 of file service_server.h.
friend class NodeHandleBackingCollection [friend] |
Definition at line 104 of file service_server.h.
ImplPtr ros::ServiceServer::impl_ [private] |
Definition at line 101 of file service_server.h.