SMACC
Loading...
Searching...
No Matches
smacc
include
smacc
client_behavior_bases
cb_service_server_callback_base.h
Go to the documentation of this file.
1
#pragma once
2
#include <
smacc/smacc_client_behavior.h
>
3
4
namespace
smacc
{
5
template
<
typename
TService>
6
class
CbServiceServerCallbackBase
:
public
smacc::SmaccClientBehavior
{
7
public
:
8
virtual
void
onEntry
()
override
{
9
this->
requiresClient
(
attachedClient_
);
10
attachedClient_
->onServiceRequestReceived(
11
&
CbServiceServerCallbackBase::onServiceRequestReceived
,
this
);
12
}
13
14
virtual
void
onServiceRequestReceived
(
typename
TService::Request& req,
15
std::shared_ptr<typename TService::Response> res) = 0;
16
17
protected
:
18
smacc::client_bases::SmaccServiceServerClient<TService>
*
attachedClient_
=
19
nullptr
;
20
};
21
}
// namespace smacc
smacc::CbServiceServerCallbackBase
Definition:
cb_service_server_callback_base.h:6
smacc::CbServiceServerCallbackBase::attachedClient_
smacc::client_bases::SmaccServiceServerClient< TService > * attachedClient_
Definition:
cb_service_server_callback_base.h:18
smacc::CbServiceServerCallbackBase::onServiceRequestReceived
virtual void onServiceRequestReceived(typename TService::Request &req, std::shared_ptr< typename TService::Response > res)=0
smacc::CbServiceServerCallbackBase::onEntry
virtual void onEntry() override
Definition:
cb_service_server_callback_base.h:8
smacc::ISmaccClientBehavior::requiresClient
void requiresClient(SmaccClientType *&storage)
Definition:
smacc_client_behavior_impl.h:54
smacc::SmaccClientBehavior
Definition:
smacc_client_behavior.h:13
smacc::client_bases::SmaccServiceServerClient
Definition:
smacc_service_server_client.h:12
smacc
Definition:
callback_counter_semaphore.h:17
smacc_client_behavior.h
Generated by
1.9.5