7 #ifndef __FWSERVICES_HELPER_PROXYCONNECTIONS_HPP__ 8 #define __FWSERVICES_HELPER_PROXYCONNECTIONS_HPP__ 10 #include "fwServices/config.hpp" 12 #include <fwCom/Signals.hpp> 13 #include <fwCom/Slots.hpp> 24 typedef std::pair< std::string, ::fwCom::Signals::SignalKeyType > SignalInfoType;
25 typedef std::pair< std::string, ::fwCom::Slots::SlotKeyType > SlotInfoType;
26 typedef std::vector< SlotInfoType > SlotInfoContainerType;
27 typedef std::string UIDType;
28 typedef std::string KeyType;
29 typedef std::pair<UIDType, KeyType> ProxyEltType;
30 typedef std::vector<ProxyEltType> ProxyEltVectType;
32 std::string m_channel;
33 ProxyEltVectType m_slots;
34 ProxyEltVectType m_signals;
48 void addSignalConnection(UIDType uid, KeyType key)
50 m_signals.push_back(std::make_pair(uid, key));
52 void addSignalConnection(
const SignalInfoType& pair)
54 m_signals.push_back(pair);
56 void addSlotConnection(UIDType uid, KeyType key)
58 m_slots.push_back(std::make_pair(uid, key));
60 void addSlotConnection(
const SlotInfoType& pair)
62 m_slots.push_back(pair);
66 return m_slots.empty() && m_signals.empty();
74 #endif // __FWSERVICES_HELPER_PROXYCONNECTIONS_HPP__ Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
Helper class to register proxy connections.