7 #include "ctrlSelection/IManagerSrv.hpp" 9 #include <fwServices/helper/Config.hpp> 10 #include <fwServices/registry/Proxy.hpp> 12 #include <boost/regex.hpp> 41 ConfigurationType config)
43 for(ConfigurationType connectCfg : config->find(
"connect"))
73 for(ConfigurationType proxyCfg : config->find(
"proxy"))
virtual FWSERVICES_API void starting()=0
Initialize the service activity.
FWCOM_API void disconnect()
Disconnect all registered connections and clear m_connections.
void manageProxies(const std::string &objectId,::fwData::Object::sptr object, ConfigurationType config)
Manages all proxies connections define in config associated to object Call manageProxy() ...
virtual FWSERVICES_API void stopping()=0
Uninitialize the service activity. The stop() method is always invoked before destroying a service...
#define FW_DEPRECATED_MSG(message, version)
Use this macro when deprecating a function to warn the developer.
This class provides few tools to ease connect/disconnect between a signal emitter and a slot receiver...
CTRLSELECTION_API IManagerSrv()
IManagerSrv constructor. Do nothing.
virtual CTRLSELECTION_API ~IManagerSrv()
IManagerSrv destructor. Do nothing.
static FWSERVICES_API void createProxy(const std::string &objectKey, const std::shared_ptr< const ::fwRuntime::ConfigurationElement > &cfg, ProxyConnectionsMapType &proxyMap, const std::shared_ptr< const ::fwData::Object > &obj=std::shared_ptr< const ::fwData::Object >())
Parses "<proxy>" tags from given configuration to connect signals and slots using proxies...
void disconnectProxies(const std::string &objectId)
Disconnects all proxies associated to objectId;.
ObjectConnectionsMapType m_objectConnections
Registers connection associated to an object. Connections are connected/disconnected when the object ...
virtual CTRLSELECTION_API void swapping() override
Swaps the service from associated object to another object. Stops and starts this service...
static FWSERVICES_API void createConnections(const std::shared_ptr< const ::fwRuntime::ConfigurationElement > &cfg,::fwCom::helper::SigSlotConnection &helper, const std::shared_ptr< const ::fwTools::Object > &obj=std::shared_ptr< const ::fwTools::Object >())
Parses "<connect>" tags from given configuration to connect signals and slots using given helper...
void manageConnections(const std::string &objectId,::fwData::Object::sptr object, ConfigurationType config)
Manages all connections define in config associated to object. Call manageConnection() ...
::fwServices::helper::Config::ProxyConnectionsMapType m_proxyCtns
Proxy connection information map : used to properly disconnect proxies.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
void manageConnection(const std::string &objectId,::fwData::Object::sptr object, ConfigurationType config)
Manages a connection define in config associated to object.
static FWSERVICES_API void disconnectProxies(const std::string &objectKey, Config::ProxyConnectionsMapType &proxyMap)
Disconnects all proxies associated to objectKey.
void removeConnections(const std::string &objectId)
Disconnects all registred connection for objectId.