fw4spl
fwServices::helper::ConfigLauncher Class Reference

This class provides few methods to manage AppConfig (parsing, starting, stopping...). More...

#include <ConfigLauncher.hpp>

+ Collaboration diagram for fwServices::helper::ConfigLauncher:

Public Types

typedef std::unique_ptr< ConfigLauncheruptr
 
typedef ::fwServices::registry::FieldAdaptorType FieldAdaptorType
 

Public Member Functions

FWSERVICES_API ConfigLauncher ()
 Constructor. Do nothing.
 
virtual FWSERVICES_API ~ConfigLauncher ()
 Destructor. Do nothing.
 
virtual FWSERVICES_API void parseConfig (const ::fwServices::IService::ConfigType &config, const ::fwServices::IService::sptr &service)
 Parse a ConfigLauncher configuration.
 
virtual FWSERVICES_API void startConfig (std::shared_ptr< ::fwServices::IService > srv, const FieldAdaptorType &optReplaceMap=FieldAdaptorType())
 Launch Appconfig. More...
 
virtual FWSERVICES_API void stopConfig ()
 Stop/destroy AppConfig and disconnect connection with config root object.
 
virtual bool configIsRunning () const
 

Protected Attributes

::fwActivities::registry::ActivityAppConfig m_appConfig
 
bool m_configIsRunning
 to know if AppConfig is running
 
::fwServices::IAppConfigManager::sptr m_appConfigManager
 

Detailed Description

This class provides few methods to manage AppConfig (parsing, starting, stopping...).

Example of configuration

1 <service type="::fwServices::SConfigController" >
2  <appConfig id="IdOfConfig" />
3  <inout key="object" uid="..." />
4  <parameter replace="channel" by="changeValueChannel" />
5  <parameter replace="service" by="serviceUid" />
6 </service>

Definition at line 43 of file ConfigLauncher.hpp.

Member Function Documentation

void fwServices::helper::ConfigLauncher::startConfig ( std::shared_ptr< ::fwServices::IService srv,
const FieldAdaptorType &  optReplaceMap = FieldAdaptorType() 
)
virtual

Launch Appconfig.

Parameters
[in]srvservice to connect with config root object
[in]optReplaceMapoptional replace map used to replace patterns (concatenated with parsed parameter)

Definition at line 129 of file ConfigLauncher.cpp.

References fwServices::registry::AppConfig::getUniqueIdentifier(), m_configIsRunning, and fwServices::IAppConfigManager::New().

+ Here is the call graph for this function:


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