#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... | |
Class which serves fibonacci numbers
Definition at line 19 of file service.hpp.
|
explicit |
Constructor
atomic_fibonacci | Shared pointer to AtomicFibonacci object |
node_handle | NodeHandle the service will be registered under |
service_topic_name | Service topic name |
Definition at line 13 of file src/service.cpp.
|
virtual |
Deconstructor
Definition at line 24 of file src/service.cpp.
|
inlineprotected |
Protected default construtor for easy mocking
Definition at line 42 of file service.hpp.
|
protectedvirtual |
Serve the next Fibonacci number
Definition at line 28 of file src/service.cpp.
|
protected |
AtomicFibonacci supplier (shared)
Definition at line 53 of file service.hpp.
|
protected |
Actual service.
Definition at line 56 of file service.hpp.