7 #ifndef __FWCOM_HASSIGNALS_HPP__ 8 #define __FWCOM_HASSIGNALS_HPP__ 10 #include "fwCom/config.hpp" 11 #include "fwCom/Signals.hpp" 26 typedef std::shared_ptr< HasSignals > sptr;
27 typedef std::shared_ptr< const HasSignals > csptr;
36 SPTR(
SignalBase ) signal(
const Signals::SignalKeyType & key )
const 38 return m_signals[key];
41 template<
typename SignalType >
42 SPTR( SignalType ) signal(
const Signals::SignalKeyType & key )
const 44 SPTR( SignalType )
Signal = std::dynamic_pointer_cast< SignalType >( this->signal(key) );
48 template<
typename SignalType>
49 SPTR( SignalType ) newSignal(
const Signals::SignalKeyType & key)
51 SPTR( SignalType ) sig = std::make_shared< SignalType > ();
69 #endif // __FWCOM_HASSIGNALS_HPP__
Namespace containing fw4spl communication tools.
HasSignals & operator=(const HasSignals &)
Copy operator forbidden.
This class proposes a mapping between a SignalKeyType and a SignalBase.
This class proposes a mapping between a SignalKeyType and a SignalBase.