fw4spl
Initializer.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __FWRUNTIME_PROFILE_INITIALIZER_HPP__
8 #define __FWRUNTIME_PROFILE_INITIALIZER_HPP__
9 
10 #include "fwRuntime/config.hpp"
11 #include "fwRuntime/Version.hpp"
12 
13 #include <boost/utility.hpp>
14 
15 #include <string>
16 
17 namespace fwRuntime
18 {
19 
20 namespace profile
21 {
22 
26 class Initializer : public boost::noncopyable
27 {
28 
29 public:
30 
36  FWRUNTIME_API Initializer( const std::string& identifier, const Version& version = Version() );
37 
43  void apply();
44 
45 protected:
46 
47  const std::string m_identifier;
49 
50 };
51 
52 } // namespace profile
53 
54 } // namespace fwRuntime
55 
56 #endif /*__FWRUNTIME_PROFILE_INITIALIZER_HPP__*/
const std::string m_identifier
the bundle identifier
Definition: Initializer.hpp:47
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
FWRUNTIME_API Initializer(const std::string &identifier, const Version &version=Version())
Constructor.
Definition: Initializer.cpp:24
void apply()
Applies the initializer on the bundle.
Definition: Initializer.cpp:32
const Version m_version
the bundle version
Definition: Initializer.hpp:48
Holds version information for libraries and bundles.
Starts a given bundle.
Definition: Initializer.hpp:26