Public Member Functions | Private Member Functions | Private Attributes | List of all members
EventsServiceImpl Class Reference

#include <events_service.h>

Inheritance diagram for EventsServiceImpl:
Inheritance graph
[legend]

Public Member Functions

 INJECT (EventsServiceImpl(ASSISTED(std::string) name, ASSISTED(std::function< std::string()>) callback))
 
virtual void Shutdown () override
 
 ~EventsServiceImpl ()
 
- Public Member Functions inherited from EventsService
virtual ~EventsService ()=default
 

Private Member Functions

bool callback (skyway::SkyWayEvents::Request &req, skyway::SkyWayEvents::Response &res)
 

Private Attributes

std::function< std::string()> callback_
 
bool is_running_ = true
 
std::string name_
 
ros::NodeHandle nh_
 
ros::ServiceServer service_
 

Detailed Description

Definition at line 28 of file events_service.h.

Constructor & Destructor Documentation

◆ ~EventsServiceImpl()

EventsServiceImpl::~EventsServiceImpl ( )
inline

Definition at line 44 of file events_service.h.

Member Function Documentation

◆ callback()

bool EventsServiceImpl::callback ( skyway::SkyWayEvents::Request &  req,
skyway::SkyWayEvents::Response &  res 
)
private

Definition at line 8 of file events_service.cpp.

◆ INJECT()

EventsServiceImpl::INJECT ( EventsServiceImpl(ASSISTED(std::string) name, ASSISTED(std::function< std::string()>) callback )

◆ Shutdown()

virtual void EventsServiceImpl::Shutdown ( )
inlineoverridevirtual

Reimplemented from EventsService.

Definition at line 45 of file events_service.h.

Member Data Documentation

◆ callback_

std::function<std::string()> EventsServiceImpl::callback_
private

Definition at line 33 of file events_service.h.

◆ is_running_

bool EventsServiceImpl::is_running_ = true
private

Definition at line 34 of file events_service.h.

◆ name_

std::string EventsServiceImpl::name_
private

Definition at line 32 of file events_service.h.

◆ nh_

ros::NodeHandle EventsServiceImpl::nh_
private

Definition at line 30 of file events_service.h.

◆ service_

ros::ServiceServer EventsServiceImpl::service_
private

Definition at line 31 of file events_service.h.


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


skyway
Author(s): Toshiya Nakakura
autogenerated on Thu Oct 26 2023 02:42:21