7 #ifndef __FWCOM_SLOTS_HXX__ 8 #define __FWCOM_SLOTS_HXX__ 11 #ifndef __FWCOM_SLOTS_HPP__ 12 #error fwCom/Slots.hpp not included 15 #include "fwCom/Slot.hpp" 16 #include "fwCom/Slot.hxx" 22 template<
typename F,
typename ... A>
31 #ifdef __FWCOM_HASSLOTS_HPP__ 33 template<
typename F,
typename A>
34 SPTR(
Slot< typename ::fwCom::util::convert_function_type< F >::type >)
35 HasSlots::newSlot( const ::fwCom::Slots::SlotKeyType & key, F f, A
a )
37 auto slot = ::fwCom::newSlot(f, a);
46 #endif //__FWCOM_SLOTS_HXX__
Namespace containing fw4spl communication tools.
SlotMapType m_slots
Association < key , SPTR( SlotBase ) >
This class proposes a mapping between a SlotKeyType and a SlotBase.
Base class for Slot implementations.
FWCOM_API Slots & operator()(const SlotKeyType &key, const std::shared_ptr< SlotBase > &slot)
Registers SlotBase in m_slots.