fw4spl
|
This class proposes a mapping between a SignalKeyType and a SignalBase. More...
#include <Signals.hpp>
Public Types | |
typedef std::string | SignalKeyType |
typedef std::map< SignalKeyType, std::shared_ptr< SignalBase > > | SignalMapType |
typedef std::vector< SignalKeyType > | SignalKeyContainerType |
Public Member Functions | |
FWCOM_API | Signals () |
Constructor, does nothing. | |
virtual FWCOM_API | ~Signals () |
Constructor, check if all signals are disconnected. | |
FWCOM_API Signals & | operator() (const SignalKeyType &key, const std::shared_ptr< SignalBase > &Signal) |
Registers SignalBase in m_signals. | |
FWCOM_API std::shared_ptr< SignalBase > | operator[] (const SignalKeyType &key) const |
Returns the SignalBase associated to the key, if key does not exist, the ptr is null. | |
FWCOM_API SignalKeyContainerType | getSignalKeys () const |
Returns all SignalKeyType registered in m_signals. | |
Protected Member Functions | |
Signals (const Signals &) | |
Copy constructor forbidden. | |
Signals & | operator= (const Signals &) |
Copy constructor forbidden. | |
Protected Attributes | |
SignalMapType | m_signals |
Association < key , SPTR( SignalBase ) > | |
This class proposes a mapping between a SignalKeyType and a SignalBase.
Definition at line 28 of file Signals.hpp.