Public Types | Public Member Functions | Protected Attributes | List of all members
mbf_abstract_nav::AbstractPluginManager< PluginType > Class Template Reference

#include <abstract_plugin_manager.h>

Public Types

typedef boost::function< bool(const std::string &name, const typename PluginType::Ptr &plugin_ptr)> initPluginFunction
 
typedef boost::function< typename PluginType::Ptr(const std::string &plugin)> loadPluginFunction
 

Public Member Functions

 AbstractPluginManager (const std::string &param_name, const loadPluginFunction &loadPlugin, const initPluginFunction &initPlugin)
 
void clearPlugins ()
 
const std::vector< std::string > & getLoadedNames ()
 
PluginType::Ptr getPlugin (const std::string &name)
 
std::string getType (const std::string &name)
 
bool hasPlugin (const std::string &name)
 
bool loadPlugins ()
 

Protected Attributes

const initPluginFunction initPlugin_
 
const loadPluginFunction loadPlugin_
 
std::vector< std::string > names_
 
const std::string param_name_
 
std::map< std::string, typename PluginType::Ptr > plugins_
 
std::map< std::string, std::string > plugins_type_
 

Detailed Description

template<typename PluginType>
class mbf_abstract_nav::AbstractPluginManager< PluginType >

Definition at line 48 of file abstract_plugin_manager.h.

Member Typedef Documentation

◆ initPluginFunction

template<typename PluginType >
typedef boost::function<bool (const std::string &name, const typename PluginType::Ptr &plugin_ptr)> mbf_abstract_nav::AbstractPluginManager< PluginType >::initPluginFunction

Definition at line 53 of file abstract_plugin_manager.h.

◆ loadPluginFunction

template<typename PluginType >
typedef boost::function<typename PluginType::Ptr(const std::string &plugin)> mbf_abstract_nav::AbstractPluginManager< PluginType >::loadPluginFunction

Definition at line 52 of file abstract_plugin_manager.h.

Constructor & Destructor Documentation

◆ AbstractPluginManager()

template<typename PluginType >
mbf_abstract_nav::AbstractPluginManager< PluginType >::AbstractPluginManager ( const std::string &  param_name,
const loadPluginFunction loadPlugin,
const initPluginFunction initPlugin 
)

Member Function Documentation

◆ clearPlugins()

template<typename PluginType >
void mbf_abstract_nav::AbstractPluginManager< PluginType >::clearPlugins ( )

◆ getLoadedNames()

template<typename PluginType >
const std::vector<std::string>& mbf_abstract_nav::AbstractPluginManager< PluginType >::getLoadedNames ( )

◆ getPlugin()

template<typename PluginType >
PluginType::Ptr mbf_abstract_nav::AbstractPluginManager< PluginType >::getPlugin ( const std::string &  name)

◆ getType()

template<typename PluginType >
std::string mbf_abstract_nav::AbstractPluginManager< PluginType >::getType ( const std::string &  name)

◆ hasPlugin()

template<typename PluginType >
bool mbf_abstract_nav::AbstractPluginManager< PluginType >::hasPlugin ( const std::string &  name)

◆ loadPlugins()

template<typename PluginType >
bool mbf_abstract_nav::AbstractPluginManager< PluginType >::loadPlugins ( )

Member Data Documentation

◆ initPlugin_

template<typename PluginType >
const initPluginFunction mbf_abstract_nav::AbstractPluginManager< PluginType >::initPlugin_
protected

Definition at line 79 of file abstract_plugin_manager.h.

◆ loadPlugin_

template<typename PluginType >
const loadPluginFunction mbf_abstract_nav::AbstractPluginManager< PluginType >::loadPlugin_
protected

Definition at line 78 of file abstract_plugin_manager.h.

◆ names_

template<typename PluginType >
std::vector<std::string> mbf_abstract_nav::AbstractPluginManager< PluginType >::names_
protected

Definition at line 76 of file abstract_plugin_manager.h.

◆ param_name_

template<typename PluginType >
const std::string mbf_abstract_nav::AbstractPluginManager< PluginType >::param_name_
protected

Definition at line 77 of file abstract_plugin_manager.h.

◆ plugins_

template<typename PluginType >
std::map<std::string, typename PluginType::Ptr> mbf_abstract_nav::AbstractPluginManager< PluginType >::plugins_
protected

Definition at line 74 of file abstract_plugin_manager.h.

◆ plugins_type_

template<typename PluginType >
std::map<std::string, std::string> mbf_abstract_nav::AbstractPluginManager< PluginType >::plugins_type_
protected

Definition at line 75 of file abstract_plugin_manager.h.


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


mbf_abstract_nav
Author(s): Sebastian Pütz
autogenerated on Wed Mar 2 2022 00:33:48