22 #ifndef __M2ETIS_PUBSUB_DELIVER_BASEDELIVER_H__
23 #define __M2ETIS_PUBSUB_DELIVER_BASEDELIVER_H__
40 template<
class NetworkType>
107 boost::function<void(uint64_t, msgProcess)>
process_;
117 boost::function<void(message::DeliverInfo::Ptr, typename NetworkType::Key, ControlTarget)>
sendCtrlMsg_;
void configureCallback(const boost::function< void(uint64_t, msgProcess)> &func)
used to set the function to be called when a message should be send to the next processing stage call...
virtual bool processOtherControlPayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
creates the DeliverInfo
boost::shared_ptr< DeliverInfo > Ptr
virtual void configureDeliverInfo(uint64_t id, const message::ActionType mtype, typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &receiver, message::ControlType ct)=0
creates the DeliverInfo
virtual bool processControlPayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
creates the DeliverInfo
BaseDeliver(PubSubSystemEnvironment *pssi)
void configureSendCallback(const boost::function< void(message::DeliverInfo::Ptr, const typename NetworkType::Key &, ControlTarget)> &func)
with this function, new messages can be sent directly to nodes
virtual bool processPublishPayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
creates the DeliverInfo
virtual bool processSubscribePayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
creates the DeliverInfo
PubSubSystemEnvironment * pssi_
PubSubSystemEnvironment.
boost::function< void(message::DeliverInfo::Ptr, typename NetworkType::Key, ControlTarget)> sendCtrlMsg_
stores the function to send new messages This function will send a newly created control message cont...
virtual bool processUnsubscribePayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
processes Control Messages (id got acked)
boost::function< void(uint64_t, msgProcess)> process_
stores the function to be called for delivering
virtual bool processNotifyPayload(typename message::DeliverInfo::Ptr ptr, const typename NetworkType::Key &sender)=0
creates the DeliverInfo