Abstract base class representing a plugin load-able class factory.
More...
#include <plugin_factory.hpp>
|
| PluginFactory (const std::string &package, const std::string &base_class_type) |
| Construct factory loading pluginlib::ClassLoader<T> .
|
|
std::string | get_plugin_manifest_path (const std::string &lookup_name) const |
| Return plugin manifest path.
|
|
PluginInfo | get_plugin_info (const std::string &lookup_name) const |
| Return plugin information.
|
|
virtual std::shared_ptr< T > | create_instance (const std::string &lookup_name) const |
| Create a instance of the plugin.
|
|
std::vector< std::string > | get_declared_classes () const |
| Return a list of all available classes for this ClassLoader's base class type.
|
|
template<typename T>
class awviz_common::PluginFactory< T >
Abstract base class representing a plugin load-able class factory.
◆ PluginFactory()
Construct factory loading pluginlib::ClassLoader<T>
.
- Parameters
-
package | Name of package. |
base_class_type | A string with the fully qualified base class type for the plugin, i.e. NAMESPACE::PLUGIN . |
◆ create_instance()
Create a instance of the plugin.
- Parameters
-
lookup_name | Lookup name of the class. |
- Returns
- Shared pointer of a plugin. Returns
nullptr
if pluginlib::PluginlibException
occurred.
◆ get_declared_classes()
Return a list of all available classes for this ClassLoader's base class type.
- Returns
- std::vector<std::string>
◆ get_plugin_info()
Return plugin information.
- Parameters
-
lookup_name | Lookup name of the class. |
- Returns
PluginInfo
object.
◆ get_plugin_manifest_path()
Return plugin manifest path.
- Parameters
-
lookup_name | Lookup name of the class. |
- Returns
- The path of the associated plugin manifest.
The documentation for this class was generated from the following file: