Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ros1_ros_cpptemplate::Publisher Class Reference

#include <publisher.hpp>

Public Member Functions

virtual void publish ()
 
 Publisher (ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci, ros::NodeHandle &node_handle, const std::string &output_topic_name)
 
virtual ~Publisher ()
 

Protected Member Functions

 Publisher ()
 

Protected Attributes

ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci_
 AtomicFibonacci supplier (shared) More...
 
ros::Publisher publisher_
 Actual publisher. More...
 

Detailed Description

Class which publishes fibonacci numbers

Definition at line 18 of file publisher.hpp.

Constructor & Destructor Documentation

ros1_ros_cpptemplate::Publisher::Publisher ( ros1_cpptemplate::AtomicFibonacciPtr  atomic_fibonacci,
ros::NodeHandle node_handle,
const std::string &  output_topic_name 
)
explicit

Constructor

Parameters
atomic_fibonacciShared pointer to AtomicFibonacci object
node_handleNodeHandle the publisher will be registered under
output_topic_namePublish topic name

Definition at line 13 of file publisher.cpp.

ros1_ros_cpptemplate::Publisher::~Publisher ( )
virtual

Deconstructor

Definition at line 23 of file publisher.cpp.

ros1_ros_cpptemplate::Publisher::Publisher ( )
inlineprotected

Protected default construtor for easy mocking

Definition at line 46 of file publisher.hpp.

Member Function Documentation

void ros1_ros_cpptemplate::Publisher::publish ( )
virtual

Publish the next Fibonacci number

Definition at line 27 of file publisher.cpp.

Member Data Documentation

ros1_cpptemplate::AtomicFibonacciPtr ros1_ros_cpptemplate::Publisher::atomic_fibonacci_
protected

AtomicFibonacci supplier (shared)

Definition at line 51 of file publisher.hpp.

ros::Publisher ros1_ros_cpptemplate::Publisher::publisher_
protected

Actual publisher.

Definition at line 54 of file publisher.hpp.


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


ros1_ros_cpptemplate
Author(s): Alexander Reimann
autogenerated on Sat Sep 2 2017 02:38:06