Public Member Functions | Protected Member Functions | Protected Attributes
ros1_ros_cpptemplate::Service Class Reference

#include <service.hpp>

List of all members.

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)
ros::ServiceServer service_
 Actual service.

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.

Deconstructor

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

ros1_ros_cpptemplate::Service::Service ( ) [inline, protected]

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 
) [protected, virtual]

Serve the next Fibonacci number

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


Member Data Documentation

AtomicFibonacci supplier (shared)

Definition at line 53 of file service.hpp.

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 Fri Sep 1 2017 02:23:42