fw4spl
fwRuntime::ExecutableFactory Struct Referenceabstract

Defines the abstract executable factory class. More...

#include <ExecutableFactory.hpp>

+ Inheritance diagram for fwRuntime::ExecutableFactory:
+ Collaboration diagram for fwRuntime::ExecutableFactory:

Public Member Functions

virtual IExecutablecreateExecutable () const =0
 Creates an executable object instance. More...
 
FWRUNTIME_API const std::string getType () const
 Retrieves the type of executable the factory is able to create. More...
 
Construction & Destruction
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

Defines the abstract executable factory class.

Date
2004-2009

Definition at line 33 of file ExecutableFactory.hpp.

Constructor & Destructor Documentation

fwRuntime::ExecutableFactory::ExecutableFactory ( const std::string &  type)

Constructor.

Parameters
[in]typea string containing a type identifier

Definition at line 14 of file ExecutableFactory.cpp.

Member Function Documentation

virtual IExecutable* fwRuntime::ExecutableFactory::createExecutable ( ) const
pure virtual

Creates an executable object instance.

Returns
a pointer to an executable instance

Implemented in fwRuntime::utils::GenericExecutableFactory< E >.

const std::string fwRuntime::ExecutableFactory::getType ( ) const

Retrieves the type of executable the factory is able to create.

Returns
a string containing an executable type

Definition at line 27 of file ExecutableFactory.cpp.


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