fw4spl
|
This class provides few methods to manage AppConfig (parsing, starting, stopping...). More...
#include <ConfigLauncher.hpp>
Public Types | |
typedef std::unique_ptr< ConfigLauncher > | uptr |
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 |
This class provides few methods to manage AppConfig (parsing, starting, stopping...).
Example of configuration
Definition at line 43 of file ConfigLauncher.hpp.
|
virtual |
Launch Appconfig.
[in] | srv | service to connect with config root object |
[in] | optReplaceMap | optional 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().