Variant message publisher. More...
#include <Publisher.h>
Classes | |
class | Impl |
Variant message publisher implementation. More... | |
Public Member Functions | |
size_t | getNumSubscribers () const |
Retrieve this publisher's number of subscribers. | |
std::string | getTopic () const |
Retrieve the topic this publisher publishes on. | |
bool | isLatched () const |
True, if the topic this publisher publishes on is latched. | |
operator ros::Publisher () const | |
Convert this variant message publisher to a native ROS publisher. | |
operator void * () const | |
Void pointer conversion. | |
void | publish (const MessageVariant &variant) |
Publish a message variant on the topic associated with this publisher. | |
Publisher () | |
Default constructor. | |
Publisher (const Publisher &src) | |
Copy constructor. | |
void | shutdown () |
Perform shutdown of the publisher. | |
~Publisher () | |
Destructor. | |
Private Types | |
typedef boost::shared_ptr< Impl > | ImplPtr |
Declaration of the publisher implementation pointer type. | |
typedef boost::weak_ptr< Impl > | ImplWPtr |
Declaration of the publisher implementation weak pointer type. | |
Private Attributes | |
ImplPtr | impl |
The publisher's implementation. | |
Friends | |
class | MessageType |
Variant message publisher.
Definition at line 36 of file Publisher.h.
typedef boost::shared_ptr<Impl> variant_topic_tools::Publisher::ImplPtr [private] |
Declaration of the publisher implementation pointer type.
Definition at line 131 of file Publisher.h.
typedef boost::weak_ptr<Impl> variant_topic_tools::Publisher::ImplWPtr [private] |
Declaration of the publisher implementation weak pointer type.
Definition at line 136 of file Publisher.h.
Default constructor.
Definition at line 32 of file Publisher.cpp.
variant_topic_tools::Publisher::Publisher | ( | const Publisher & | src | ) |
Copy constructor.
Definition at line 35 of file Publisher.cpp.
Destructor.
Definition at line 39 of file Publisher.cpp.
size_t variant_topic_tools::Publisher::getNumSubscribers | ( | ) | const |
Retrieve this publisher's number of subscribers.
Definition at line 90 of file Publisher.cpp.
std::string variant_topic_tools::Publisher::getTopic | ( | ) | const |
Retrieve the topic this publisher publishes on.
Definition at line 83 of file Publisher.cpp.
bool variant_topic_tools::Publisher::isLatched | ( | ) | const |
True, if the topic this publisher publishes on is latched.
Definition at line 97 of file Publisher.cpp.
variant_topic_tools::Publisher::operator ros::Publisher | ( | ) | const |
Convert this variant message publisher to a native ROS publisher.
Definition at line 72 of file Publisher.cpp.
variant_topic_tools::Publisher::operator void * | ( | ) | const [inline] |
Void pointer conversion.
Definition at line 69 of file Publisher.h.
void variant_topic_tools::Publisher::publish | ( | const MessageVariant & | variant | ) |
Publish a message variant on the topic associated with this publisher.
Definition at line 117 of file Publisher.cpp.
Perform shutdown of the publisher.
Definition at line 112 of file Publisher.cpp.
friend class MessageType [friend] |
Definition at line 37 of file Publisher.h.
ImplPtr variant_topic_tools::Publisher::impl [private] |
The publisher's implementation.
Definition at line 140 of file Publisher.h.