fw4spl
Uninitializer.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_UNINITIALIZER_HPP__
8 #define __FWRUNTIME_PROFILE_UNINITIALIZER_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 Uninitializer : public boost::noncopyable
27 {
28 public:
29 
30  friend class Stopper;
36  FWRUNTIME_API Uninitializer( 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_UNINITIALIZER_HPP__*/
const std::string m_identifier
the bundle identifier
FWRUNTIME_API Uninitializer(const std::string &identifier, const Version &version=Version())
Constructor.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
const Version m_version
the bundle version
Holds version information for libraries and bundles.
void apply()
Applies the uninitializer on the bundle.
Stops a given bundle.
Definition: Stopper.hpp:26