knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::PluginFactory< T > Class Template Referenceabstract

#include <PluginFactory.h>

Inheritance diagram for knowrob::PluginFactory< T >:

Public Member Functions

virtual ~PluginFactory ()=default
 
virtual std::shared_ptr< NamedPlugin< T > > create (std::string_view pluginID)=0
 
virtual std::string_view name () const =0
 
virtual ~PluginFactory ()=default
 
virtual std::shared_ptr< NamedPlugin< T > > create (std::string_view pluginID)=0
 
virtual std::string_view name () const =0
 

Detailed Description

template<class T>
class knowrob::PluginFactory< T >

Abstract plugin factory. Provides an interface for the creation of plugin instances.

Definition at line 19 of file PluginFactory.h.

Constructor & Destructor Documentation

◆ ~PluginFactory() [1/2]

template<class T >
virtual knowrob::PluginFactory< T >::~PluginFactory ( )
virtualdefault

◆ ~PluginFactory() [2/2]

template<class T >
virtual knowrob::PluginFactory< T >::~PluginFactory ( )
virtualdefault

Member Function Documentation

◆ create() [1/2]

template<class T >
virtual std::shared_ptr<NamedPlugin<T> > knowrob::PluginFactory< T >::create ( std::string_view  pluginID)
pure virtual

Create a new plugin instance.

Parameters
pluginIDthe ID of the plugin.
Returns
the plugin created.

Implemented in knowrob::TypedPluginFactory< T, Base >, knowrob::PluginModule< T >, knowrob::PluginLibrary< T >, knowrob::TypedPluginFactory< T, Base >, knowrob::PluginModule< T >, and knowrob::PluginLibrary< T >.

◆ create() [2/2]

template<class T >
virtual std::shared_ptr<NamedPlugin<T> > knowrob::PluginFactory< T >::create ( std::string_view  pluginID)
pure virtual

Create a new plugin instance.

Parameters
pluginIDthe ID of the plugin.
Returns
the plugin created.

Implemented in knowrob::TypedPluginFactory< T, Base >, knowrob::PluginModule< T >, knowrob::PluginLibrary< T >, knowrob::TypedPluginFactory< T, Base >, knowrob::PluginModule< T >, and knowrob::PluginLibrary< T >.

◆ name() [1/2]

template<class T >
virtual std::string_view knowrob::PluginFactory< T >::name ( ) const
pure virtual

◆ name() [2/2]

template<class T >
virtual std::string_view knowrob::PluginFactory< T >::name ( ) const
pure virtual

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