fw4spl
fwCom::Signals Class Reference

This class proposes a mapping between a SignalKeyType and a SignalBase. More...

#include <Signals.hpp>

+ Collaboration diagram for fwCom::Signals:

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 Signalsoperator() (const SignalKeyType &key, const std::shared_ptr< SignalBase > &Signal)
 Registers SignalBase in m_signals.
 
FWCOM_API std::shared_ptr< SignalBaseoperator[] (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.
 
Signalsoperator= (const Signals &)
 Copy constructor forbidden.
 

Protected Attributes

SignalMapType m_signals
 Association < key , SPTR( SignalBase ) >
 

Detailed Description

This class proposes a mapping between a SignalKeyType and a SignalBase.

Date
2012.

Definition at line 28 of file Signals.hpp.


The documentation for this class was generated from the following files: