7 #ifndef __FWCOM_HASSLOTS_HPP__ 8 #define __FWCOM_HASSLOTS_HPP__ 10 #include "fwCom/config.hpp" 11 #include "fwCom/Slots.hpp" 12 #include "fwCom/util/convert_function_type.hpp" 27 typedef std::shared_ptr< HasSlots > sptr;
28 typedef std::shared_ptr< const HasSlots > csptr;
37 SPTR(
SlotBase ) slot(
const Slots::SlotKeyType & key )
const 42 template<
typename SlotType >
43 SPTR( SlotType ) slot(
const Slots::SlotKeyType & key )
const 45 SPTR( SlotType ) slot = std::dynamic_pointer_cast< SlotType >( this->slot(key) );
49 template<
typename F,
typename A>
50 SPTR(
Slot< typename ::fwCom::util::convert_function_type< F >::type >) newSlot(
const Slots::SlotKeyType & key, F f,
66 #endif // __FWCOM_HASSLOTS_HPP__
Namespace containing fw4spl communication tools.
This class proposes a mapping between a SlotKeyType and a SlotBase.
This class proposes a mapping between a SlotKeyType and a SlotBase.
HasSlots & operator=(const HasSlots &)
Copy operator forbidden.
Base class for Slot implementations.