fw4spl
GenericExecutableFactoryRegistrar.hpp
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 #ifndef __FWRUNTIME_UTILS_GENERICEXECUTABLEFACTORYREGISTRAR_HPP__
8 #define __FWRUNTIME_UTILS_GENERICEXECUTABLEFACTORYREGISTRAR_HPP__
9 
10 #include <string>
11 
12 #include "fwRuntime/ExecutableFactoryRegistrar.hpp"
13 #include "fwRuntime/utils/GenericExecutableFactory.hpp"
14 
15 
16 namespace fwRuntime
17 {
18 
19 namespace utils
20 {
21 
28 template< typename E >
30 {
31 
33 
37  GenericExecutableFactoryRegistrar(const std::string& type)
38  : ExecutableFactoryRegistrar( std::shared_ptr< FactoryType >( new FactoryType(type) ) )
39  {
40  }
41 
42 };
43 
44 
45 } // namespace utils
46 
47 } // namespace fwRuntime
48 
49 
50 #endif //__FWRUNTIME_UTILS_GENERICEXECUTABLEFACTORYREGISTRAR_HPP__
STL namespace.
Defines an executable factory registrar class.An instance of this class is responsible for the regist...
Defines a generic template executable factory registrar class.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...
Defines a generic template executable factory class.