7 #include "fwRuntime/profile/Stopper.hpp" 9 #include "fwRuntime/Bundle.hpp" 10 #include "fwRuntime/Runtime.hpp" 12 #include <fwCore/base.hpp> 26 m_identifier( identifier ),
36 SLM_FATAL_IF(
"Unable to stop bundle " + Bundle::getBundleStr(m_identifier, m_version) +
". Not found.",
40 SLM_INFO(
"Stopping bundle : " + Bundle::getBundleStr(m_identifier, m_version));
43 catch(
const std::exception& e )
45 SLM_ERROR(
"Unable to stop bundle " + Bundle::getBundleStr(m_identifier, m_version) +
". " + e.what());
static FWRUNTIME_API Runtime * getDefault()
Retrieves the default runtime instance.
FWRUNTIME_API std::shared_ptr< Bundle > findEnabledBundle(const std::string &identifier, const Version &version=Version()) const
Retrieves the enabled bundle for the specified idenfier.
void apply()
Applies the Stopper on the system.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
#define SLM_ERROR(message)
FWRUNTIME_API Stopper(const std::string &_identifier, const Version &version=Version())
Constructor.
#define SLM_FATAL_IF(message, cond)
#define SLM_INFO(message)
Holds version information for libraries and bundles.