This class provides an interface to manage configurations template.
More...
#include <IAppConfigManager.hpp>
|
virtual bool | isA (const std::string &type) const override |
|
FWSERVICES_API | IAppConfigManager () |
| Constructor. Do nothing.
|
|
virtual FWSERVICES_API | ~IAppConfigManager () |
| Destructor. Do nothing.
|
|
bool | isCreated () const |
| Return state.
|
|
bool | isStarted () const |
|
bool | isStopped () const |
|
bool | isDestroyed () const |
|
void | setConfig (::fwRuntime::ConfigurationElement::csptr cfgElem) |
| Set config param.
|
|
virtual FWSERVICES_API void | setConfig (const std::string &configId, const FieldAdaptorType &replaceFields=FieldAdaptorType())=0 |
| Set configuration. More...
|
|
virtual FWSERVICES_API void | setConfig (const std::string &configId, const ::fwData::Composite::csptr &replaceFields)=0 |
| Set configuration. More...
|
|
virtual FWSERVICES_API::fwData::Object::sptr | getConfigRoot () const =0 |
| Get config root.
|
|
virtual FWSERVICES_API void | launch ()=0 |
| Calls methods : create, start then update.
|
|
virtual FWSERVICES_API void | stopAndDestroy ()=0 |
| Stops and destroys services specified in config, then resets the configRoot sptr.
|
|
virtual FWSERVICES_API void | create ()=0 |
| Creates objects and services from config.
|
|
virtual FWSERVICES_API void | start ()=0 |
| Starts services specified in config.
|
|
virtual FWSERVICES_API void | update ()=0 |
| Updates services specified in config.
|
|
virtual FWSERVICES_API void | stop ()=0 |
| Stops services specified in config.
|
|
virtual FWSERVICES_API void | destroy ()=0 |
| Destroys services specified in config.
|
|
virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
static bool | isTypeOf (const std::string &type) |
|
static FWSERVICES_API std::shared_ptr< IAppConfigManager > | New () |
|
static bool | isTypeOf (const std::string &type) |
|
static const std::string & | classname () |
| return full object's classname with its namespace, i.e. fwCore::BaseObject
|
|
static bool | isTypeOf (const std::string &type) |
|
static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
enum | ConfigState { STATE_CREATED,
STATE_STARTED,
STATE_STOPPED,
STATE_DESTROYED
} |
|
enum | Policy { EMPTY = 1,
GENERATE,
MUST_EXIST
} |
|
typedef std::string | IDType |
|
|
::fwRuntime::ConfigurationElement::csptr | m_cfgElem |
| XML Configuration tree.
|
|
ConfigState | m_state |
| Running state of the app config manager.
|
|
std::shared_ptr< ::fwTools::UUID > | m_uuid |
| UUID used to identify the object, notably for serialization.
|
|
|
FWTOOLS_API bool | hasID () const |
| Return true if the object has an id set. More...
|
|
FWTOOLS_API IDType | getID (Policy policy=GENERATE) const |
| Returns the id of the object. If it is not set and the policy value is. More...
|
|
virtual FWTOOLS_API void | setID (IDType newID) |
| Set a newID for the object, (newID must not exist in fwID), the oldest one is released. More...
|
|
FWTOOLS_API void | resetID () |
| Release the id for the object. More...
|
|
| fwID () |
| Constructor : does nothing.
|
|
virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject
|
|
static bool | isTypeOf (const std::string &type) |
|
static FWTOOLS_API bool | exist (IDType _id) |
|
static FWTOOLS_API std::shared_ptr< ::fwTools::Object > | getObject (IDType requestID) |
| Retrieve the object attached to the given id. Return a null sptr if no correspondence exist. More...
|
|
static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
This class provides an interface to manage configurations template.
Definition at line 22 of file IAppConfigManager.hpp.
IAppConfigManager::sptr fwServices::IAppConfigManager::New |
( |
| ) |
|
|
static |
Return a new AppConfigManager implementation. Should be used for all the IAppConfigManager of the application, bexcept the first one which must be explicitly called.
Definition at line 16 of file IAppConfigManager.cpp.
Referenced by appXml::Plugin::initialize(), guiQt::editor::DynamicView::launchTab(), fwServices::helper::ConfigLauncher::startConfig(), guiQt::editor::SActivityView::starting(), uiMeasurement::action::LoadLandmark::stopping(), uiMeasurement::action::SaveLandmark::stopping(), guiQt::editor::SDynamicView::swapping(), dataReg::parser::Object::updating(), dataReg::parser::List::updating(), dataReg::parser::Composite::updating(), uiMedDataQt::SSeriesViewer::updating(), and activities::action::SActivityLauncher::updating().
virtual FWSERVICES_API void fwServices::IAppConfigManager::setConfig |
( |
const std::string & |
configId, |
|
|
const FieldAdaptorType & |
replaceFields = FieldAdaptorType() |
|
) |
| |
|
pure virtual |
Set configuration.
- Parameters
-
configId | the identifier of the requested config. |
replaceFields | the associations between the value and the pattern to replace in the config. |
Implemented in fwServices::AppConfigManager.
virtual FWSERVICES_API void fwServices::IAppConfigManager::setConfig |
( |
const std::string & |
configId, |
|
|
const ::fwData::Composite::csptr & |
replaceFields |
|
) |
| |
|
pure virtual |
Set configuration.
- Parameters
-
configId | the identifier of the requested config. |
replaceFields | composite of association between the value and the pattern to replace in the config. |
Implemented in fwServices::AppConfigManager.
The documentation for this class was generated from the following files: