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

#include <service.hpp>

Public Member Functions

 Service (ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci, ros::NodeHandle &node_handle, const std::string &service_topic_name)
 
virtual ~Service ()
 

Protected Member Functions

virtual bool serve (ros1_template_msgs::Answer::Request &request, ros1_template_msgs::Answer::Response &response)
 
 Service ()
 

Protected Attributes

ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci_
 AtomicFibonacci supplier (shared) More...
 
ros::ServiceServer service_
 Actual service. More...
 

Detailed Description

Class which serves fibonacci numbers

Definition at line 19 of file service.hpp.

Constructor & Destructor Documentation

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

Constructor

Parameters
atomic_fibonacciShared pointer to AtomicFibonacci object
node_handleNodeHandle the service will be registered under
service_topic_nameService topic name

Definition at line 13 of file src/service.cpp.

ros1_ros_cpptemplate::Service::~Service ( )
virtual

Deconstructor

Definition at line 24 of file src/service.cpp.

ros1_ros_cpptemplate::Service::Service ( )
inlineprotected

Protected default construtor for easy mocking

Definition at line 42 of file service.hpp.

Member Function Documentation

bool ros1_ros_cpptemplate::Service::serve ( ros1_template_msgs::Answer::Request &  request,
ros1_template_msgs::Answer::Response &  response 
)
protectedvirtual

Serve the next Fibonacci number

Definition at line 28 of file src/service.cpp.

Member Data Documentation

ros1_cpptemplate::AtomicFibonacciPtr ros1_ros_cpptemplate::Service::atomic_fibonacci_
protected

AtomicFibonacci supplier (shared)

Definition at line 53 of file service.hpp.

ros::ServiceServer ros1_ros_cpptemplate::Service::service_
protected

Actual service.

Definition at line 56 of file service.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