SMACC
Loading...
Searching...
No Matches
cb_subscription_callback_base.h
Go to the documentation of this file.
1/*****************************************************************************************************************
2 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018-2021
3 * Authors: Pablo Inigo Blasco, Brett Aldrich
4 *
5 ******************************************************************************************************************/
6#pragma once
8
9namespace smacc
10{
11template <typename TMsg>
13{
14public:
15 virtual void onEntry() override
16 {
19 }
20
21 virtual void onMessageReceived(const TMsg& msg) = 0;
22
23protected:
25};
26} // namespace smacc
virtual void onMessageReceived(const TMsg &msg)=0
smacc::client_bases::SmaccSubscriberClient< TMsg > * attachedClient_
void requiresClient(SmaccClientType *&storage)
boost::signals2::connection onMessageReceived(void(T::*callback)(const MessageType &), T *object)