7 #ifndef __FWSERVICES_IAPPCONFIGMANAGER_HPP__ 8 #define __FWSERVICES_IAPPCONFIGMANAGER_HPP__ 10 #include "fwServices/config.hpp" 11 #include "fwServices/registry/AppInfo.hpp" 13 #include <fwData/Composite.hpp> 15 #include <fwTools/Object.hpp> 40 bool isCreated() const;
41 bool isStarted() const;
42 bool isStopped() const;
43 bool isDestroyed() const;
46 void setConfig(::
fwRuntime::ConfigurationElement::csptr cfgElem);
53 FWSERVICES_API virtual
void setConfig(const
std::
string& configId,
54 const FieldAdaptorType& replaceFields = FieldAdaptorType()) = 0;
61 FWSERVICES_API virtual
void setConfig(const
std::
string& configId,
62 const ::
fwData::Composite::csptr& replaceFields) = 0;
65 FWSERVICES_API virtual ::
fwData::Object::sptr getConfigRoot() const = 0;
68 FWSERVICES_API virtual
void launch() = 0;
71 FWSERVICES_API virtual
void stopAndDestroy() = 0;
74 FWSERVICES_API virtual
void create() = 0;
77 FWSERVICES_API virtual
void start() = 0;
80 FWSERVICES_API virtual
void update() = 0;
83 FWSERVICES_API virtual
void stop() = 0;
86 FWSERVICES_API virtual
void destroy() = 0;
107 m_state(STATE_DESTROYED)
122 return m_state == STATE_CREATED;
127 inline bool IAppConfigManager::isStarted()
const 129 return m_state == STATE_STARTED;
134 inline bool IAppConfigManager::isStopped()
const 136 return m_state == STATE_STOPPED;
141 inline bool IAppConfigManager::isDestroyed()
const 143 return m_state == STATE_DESTROYED;
157 #endif // __FWSERVICES_IAPPCONFIGMANAGER_HPP__
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
bool isCreated() const
Return state.
::fwRuntime::ConfigurationElement::csptr m_cfgElem
XML Configuration tree.
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
void setConfig(::fwRuntime::ConfigurationElement::csptr cfgElem)
Set config param.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
std::map< std::string, std::string > FieldAdaptorType
Associations of <pattern, value>.
virtual FWSERVICES_API ~IAppConfigManager()
Destructor. Do nothing.
Contains the representation of the data objects used in the framework.
FWSERVICES_API IAppConfigManager()
Constructor. Do nothing.
This class provides an interface to manage configurations template.
ConfigState m_state
Running state of the app config manager.