7 #include "fwRuntime/BundleElement.hpp" 9 #include "fwRuntime/Bundle.hpp" 15 m_bundle(
Bundle::getLoadingBundle() ),
19 SLM_ASSERT(
"bundle '" << m_bundle.lock()->getIdentifier() <<
"' not initialized", m_bundle.lock() != nullptr );
29 SLM_ASSERT(
"bundle '" << m_bundle.lock()->getIdentifier() <<
"' not initialized", m_bundle.lock() != nullptr );
36 return m_bundle.lock();
44 SLM_ASSERT(
"bundle '" << m_bundle.lock()->getIdentifier() <<
"' not initialized", m_bundle.lock() != nullptr );
45 return m_bundle.lock()->isEnable() && m_enable;
FWRUNTIME_API void setEnable(const bool enable)
Set if the element is enabled or not.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
BundleElement()
Constructor.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
FWRUNTIME_API std::shared_ptr< Bundle > getBundle() const
Retrieves the bundle that owns the extension.
Defines the bundle class.
FWRUNTIME_API bool isEnable() const
Tells if the element is enabled or not.