fw4spl
Executable.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwRuntime/Executable.hpp"
8 #include "fwRuntime/ConfigurationElement.hpp"
9 
10 
11 namespace fwRuntime
12 {
13 
14 //------------------------------------------------------------------------------
15 
16 std::shared_ptr<Bundle> Executable::getBundle() const noexcept
17 {
18  return m_bundle;
19 }
20 
21 //------------------------------------------------------------------------------
22 
23 const ConfigurationElement::sptr Executable::getInitializationData() const noexcept
24 {
25  return m_initializationData;
26 }
27 
28 //------------------------------------------------------------------------------
29 
30 void Executable::setBundle( std::shared_ptr< Bundle > bundle )
31 {
32  m_bundle = bundle;
33 }
34 
35 //------------------------------------------------------------------------------
36 
37 void Executable::setInitializationData( const ConfigurationElement::sptr element ) noexcept
38 {
39  m_initializationData = element;
40 }
41 
42 //------------------------------------------------------------------------------
43 
44 } // namespace fwRuntime
FWRUNTIME_API const std::shared_ptr< ConfigurationElement > getInitializationData() const noexcept
Retrieves the executable&#39;s initialization data.
Definition: Executable.cpp:23
virtual FWRUNTIME_API std::shared_ptr< Bundle > getBundle() const noexcept
Retrieves the bundle the executable originates from.
Definition: Executable.cpp:16
virtual FWRUNTIME_API void setBundle(std::shared_ptr< Bundle > bundle)
Updates the bundle the executable originates from.
Definition: Executable.cpp:30
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
virtual FWRUNTIME_API void setInitializationData(const std::shared_ptr< ConfigurationElement > configuration) noexcept
Initializes the executable instance with the specified configuration element.
Definition: Executable.cpp:37