fw4spl
Stopper.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_STOPPER_HPP__
8 #define __FWRUNTIME_PROFILE_STOPPER_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 Stopper : public boost::noncopyable
27 {
28 
29 public:
30 
36  FWRUNTIME_API Stopper( const std::string& _identifier, const Version& version = Version() );
37 
43  void apply();
44 
45 private:
46 
47  const std::string m_identifier;
48  const Version m_version;
49 };
50 
51 } // namespace profile
52 
53 } // namespace fwRuntime
54 
55 #endif /*__FWRUNTIME_PROFILE_STOPPER_HPP__*/
void apply()
Applies the Stopper on the system.
Definition: Stopper.cpp:33
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
FWRUNTIME_API Stopper(const std::string &_identifier, const Version &version=Version())
Constructor.
Definition: Stopper.cpp:25
Holds version information for libraries and bundles.
Stops a given bundle.
Definition: Stopper.hpp:26