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