26 #ifndef SERVER_IPC_CALLBACK_WRAPPER_HPP
27 #define SERVER_IPC_CALLBACK_WRAPPER_HPP
37 template<
typename ArgIn>
40 typedef typename std::remove_cv<ArgIn>::type
in;
41 typedef std::function<void(const in&)>
type;
57 typedef std::function<void()>
type;
69 template<
typename ArgIn = const api::Vo
id,
typename ArgOut = api::Vo
id>
72 typedef typename std::remove_cv<ArgIn>::type
in;
74 typedef std::function<void(const in&, api::MethodResultBuilder::Pointer)>
type;
79 const std::shared_ptr<in>& argIn,
82 auto rb = std::make_shared<api::IPCMethodResultBuilder>(argOut);
89 template<
typename ArgOut>
94 typedef std::function<void(api::MethodResultBuilder::Pointer)>
type;
99 const std::shared_ptr<in>& ,
102 auto rb = std::make_shared<api::IPCMethodResultBuilder>(argOut);
111 #endif // SERVER_IPC_CALLBACK_WRAPPER_HPP
static cargo::ipc::MethodHandler< out, in >::type getWrapper(const type &callback)
Definition: ipc-callback-wrapper.hpp:97
std::shared_ptr< MethodResult > Pointer
Definition: method-result.hpp:47
static cargo::ipc::MethodHandler< out, in >::type getWrapper(const type &callback)
Definition: ipc-callback-wrapper.hpp:77
std::string PeerID
Definition: types.hpp:45
std::function< void(api::MethodResultBuilder::Pointer)> type
Definition: ipc-callback-wrapper.hpp:94
std::remove_cv< ArgIn >::type in
Definition: ipc-callback-wrapper.hpp:72
Definition: messages.hpp:36
static cargo::ipc::SignalHandler< in >::type getWrapper(const type &callback)
Definition: ipc-callback-wrapper.hpp:60
std::function< void(const in &)> type
Definition: ipc-callback-wrapper.hpp:41
std::function< bool(PeerID peerID, std::shared_ptr< ReceivedDataType > &data)> type
Definition: types.hpp:99
ArgOut out
Definition: ipc-callback-wrapper.hpp:93
api::Void in
Definition: ipc-callback-wrapper.hpp:56
ArgOut out
Definition: ipc-callback-wrapper.hpp:73
std::function< void()> type
Definition: ipc-callback-wrapper.hpp:57
std::function< void(const in &, api::MethodResultBuilder::Pointer)> type
Definition: ipc-callback-wrapper.hpp:74
api::Void in
Definition: ipc-callback-wrapper.hpp:92
static cargo::ipc::SignalHandler< in >::type getWrapper(const type &callback)
Definition: ipc-callback-wrapper.hpp:44
std::remove_cv< ArgIn >::type in
Definition: ipc-callback-wrapper.hpp:40
Definition: ipc-callback-wrapper.hpp:38
Definition: ipc-callback-wrapper.hpp:70
Interface for result builders.
std::function< bool(PeerID peerID, std::shared_ptr< ReceivedDataType > &data, MethodResult::Pointer methodResult) > type
Definition: method-result.hpp:78
Interface for result builders.
Host's internal IPC messages declaration.