Classes | Public Member Functions | Private Types | Private Attributes | Friends
variant_topic_tools::Publisher Class Reference

Variant message publisher. More...

#include <Publisher.h>

List of all members.

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< ImplImplPtr
 Declaration of the publisher implementation pointer type.
typedef boost::weak_ptr< ImplImplWPtr
 Declaration of the publisher implementation weak pointer type.

Private Attributes

ImplPtr impl
 The publisher's implementation.

Friends

class MessageType

Detailed Description

Variant message publisher.

Definition at line 36 of file Publisher.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

Default constructor.

Definition at line 32 of file Publisher.cpp.

Copy constructor.

Definition at line 35 of file Publisher.cpp.

Destructor.

Definition at line 39 of file Publisher.cpp.


Member Function Documentation

Retrieve this publisher's number of subscribers.

Definition at line 90 of file Publisher.cpp.

Retrieve the topic this publisher publishes on.

Definition at line 83 of file Publisher.cpp.

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.

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.


Friends And Related Function Documentation

friend class MessageType [friend]

Definition at line 37 of file Publisher.h.


Member Data Documentation

The publisher's implementation.

Definition at line 140 of file Publisher.h.


The documentation for this class was generated from the following files:


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Tue Jul 9 2019 03:18:42