fw4spl
fwRuntime::utils::GenericExecutableFactory< E > Struct Template Reference

Defines a generic template executable factory class. More...

#include <GenericExecutableFactory.hpp>

+ Inheritance diagram for fwRuntime::utils::GenericExecutableFactory< E >:
+ Collaboration diagram for fwRuntime::utils::GenericExecutableFactory< E >:

Public Member Functions

 GenericExecutableFactory (const std::string &type)
 Constructor. More...
 
virtual ~GenericExecutableFactory ()
 Destructor : does nothing.
 
IExecutablecreateExecutable () const
 Creates an executable object instance. More...
 
- Public Member Functions inherited from fwRuntime::ExecutableFactory
FWRUNTIME_API const std::string getType () const
 Retrieves the type of executable the factory is able to create. More...
 
FWRUNTIME_API ExecutableFactory (const std::string &type)
 Constructor. More...
 
virtual FWRUNTIME_API ~ExecutableFactory ()
 Destructor : does nothing.
 
- Public Member Functions inherited from fwRuntime::BundleElement
FWRUNTIME_API std::shared_ptr< BundlegetBundle () const
 Retrieves the bundle that owns the extension. More...
 
FWRUNTIME_API bool isEnable () const
 Tells if the element is enabled or not. More...
 
FWRUNTIME_API void setEnable (const bool enable)
 Set if the element is enabled or not. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fwRuntime::BundleElement
 BundleElement ()
 Constructor. More...
 
 BundleElement (std::shared_ptr< Bundle > bundle)
 Constructor. More...
 

Detailed Description

template<typename E>
struct fwRuntime::utils::GenericExecutableFactory< E >

Defines a generic template executable factory class.

Date
2004-2009

Definition at line 30 of file GenericExecutableFactory.hpp.

Constructor & Destructor Documentation

template<typename E >
fwRuntime::utils::GenericExecutableFactory< E >::GenericExecutableFactory ( const std::string &  type)
inline

Constructor.

Parameters
[in]typea string containing the type supported by the factory

Definition at line 37 of file GenericExecutableFactory.hpp.

Member Function Documentation

template<typename E >
IExecutable* fwRuntime::utils::GenericExecutableFactory< E >::createExecutable ( ) const
inlinevirtual

Creates an executable object instance.

Returns
a pointer to an executable instance

Implements fwRuntime::ExecutableFactory.

Definition at line 55 of file GenericExecutableFactory.hpp.


The documentation for this struct was generated from the following file: