Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
qt_gui_cpp::RosPluginlibPluginProvider< T > Class Template Reference

#include <ros_pluginlib_plugin_provider.h>

Inheritance diagram for qt_gui_cpp::RosPluginlibPluginProvider< T >:
Inheritance graph
[legend]

Public Member Functions

virtual QMap< QString, QString > discover (QObject *discovery_data)
 
virtual QList< PluginDescriptor * > discover_descriptors (QObject *discovery_data)
 
bool event (QEvent *e)
 
virtual void * load (const QString &plugin_id, PluginContext *plugin_context)
 
virtual T * load_explicit_type (const QString &plugin_id, PluginContext *plugin_context)
 
virtual Pluginload_plugin (const QString &plugin_id, PluginContext *plugin_context)
 
 RosPluginlibPluginProvider (const QString &export_tag, const QString &base_class_type)
 
virtual void unload (void *instance)
 
virtual ~RosPluginlibPluginProvider ()
 
- Public Member Functions inherited from qt_gui_cpp::PluginProvider
 PluginProvider ()
 
virtual void shutdown ()
 
virtual void unload_plugin (Plugin *plugin_instance)
 
virtual ~PluginProvider ()
 

Static Public Member Functions

static RosPluginlibPluginProvider< T > * create_instance (const QString &export_tag, const QString &base_class_type)
 

Protected Member Functions

virtual boost::shared_ptr< T > create_plugin (const std::string &lookup_name, PluginContext *=0)
 
virtual void init_plugin (const QString &, PluginContext *plugin_context, Plugin *plugin)
 

Private Member Functions

void parseActionAttributes (TiXmlElement *element, const std::string &plugin_path, QString &label, QString &statustip, QString &icon, QString &icontype)
 
bool parseManifest (const std::string &lookup_name, const std::string &plugin_path, QString &label, QString &statustip, QString &icon, QString &icontype, PluginDescriptor *plugin_descriptor)
 
void unload_pending_libraries ()
 

Private Attributes

QString base_class_type_
 
pluginlib::ClassLoader< T > * class_loader_
 
QString export_tag_
 
QMap< void *, boost::shared_ptr< T > > instances_
 
QList< boost::shared_ptr< T > > libraries_to_unload_
 
int unload_libraries_event_
 

Detailed Description

template<typename T>
class qt_gui_cpp::RosPluginlibPluginProvider< T >

Definition at line 63 of file ros_pluginlib_plugin_provider.h.

Constructor & Destructor Documentation

template<typename T>
qt_gui_cpp::RosPluginlibPluginProvider< T >::RosPluginlibPluginProvider ( const QString &  export_tag,
const QString &  base_class_type 
)
inline

Definition at line 75 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual qt_gui_cpp::RosPluginlibPluginProvider< T >::~RosPluginlibPluginProvider ( )
inlinevirtual

Definition at line 85 of file ros_pluginlib_plugin_provider.h.

Member Function Documentation

template<typename T>
static RosPluginlibPluginProvider<T>* qt_gui_cpp::RosPluginlibPluginProvider< T >::create_instance ( const QString &  export_tag,
const QString &  base_class_type 
)
inlinestatic

Definition at line 70 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual boost::shared_ptr<T> qt_gui_cpp::RosPluginlibPluginProvider< T >::create_plugin ( const std::string &  lookup_name,
PluginContext = 0 
)
inlineprotectedvirtual

Definition at line 281 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual QMap<QString, QString> qt_gui_cpp::RosPluginlibPluginProvider< T >::discover ( QObject *  discovery_data)
inlinevirtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 93 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual QList<PluginDescriptor*> qt_gui_cpp::RosPluginlibPluginProvider< T >::discover_descriptors ( QObject *  discovery_data)
inlinevirtual
Attention
Ownership of returned PluginDescriptor's is transfered to the caller

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 98 of file ros_pluginlib_plugin_provider.h.

template<typename T>
bool qt_gui_cpp::RosPluginlibPluginProvider< T >::event ( QEvent *  e)
inline

Definition at line 269 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual void qt_gui_cpp::RosPluginlibPluginProvider< T >::init_plugin ( const QString &  ,
PluginContext plugin_context,
Plugin plugin 
)
inlineprotectedvirtual

Definition at line 286 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual void* qt_gui_cpp::RosPluginlibPluginProvider< T >::load ( const QString &  plugin_id,
PluginContext plugin_context 
)
inlinevirtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 179 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual T* qt_gui_cpp::RosPluginlibPluginProvider< T >::load_explicit_type ( const QString &  plugin_id,
PluginContext plugin_context 
)
inlinevirtual

Definition at line 201 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual Plugin* qt_gui_cpp::RosPluginlibPluginProvider< T >::load_plugin ( const QString &  plugin_id,
PluginContext plugin_context 
)
inlinevirtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 184 of file ros_pluginlib_plugin_provider.h.

template<typename T>
void qt_gui_cpp::RosPluginlibPluginProvider< T >::parseActionAttributes ( TiXmlElement *  element,
const std::string &  plugin_path,
QString &  label,
QString &  statustip,
QString &  icon,
QString &  icontype 
)
inlineprivate

Definition at line 358 of file ros_pluginlib_plugin_provider.h.

template<typename T>
bool qt_gui_cpp::RosPluginlibPluginProvider< T >::parseManifest ( const std::string &  lookup_name,
const std::string &  plugin_path,
QString &  label,
QString &  statustip,
QString &  icon,
QString &  icontype,
PluginDescriptor plugin_descriptor 
)
inlineprivate

Definition at line 293 of file ros_pluginlib_plugin_provider.h.

template<typename T>
virtual void qt_gui_cpp::RosPluginlibPluginProvider< T >::unload ( void *  instance)
inlinevirtual

Reimplemented from qt_gui_cpp::PluginProvider.

Definition at line 255 of file ros_pluginlib_plugin_provider.h.

template<typename T>
void qt_gui_cpp::RosPluginlibPluginProvider< T >::unload_pending_libraries ( )
inlineprivate

Definition at line 386 of file ros_pluginlib_plugin_provider.h.

Member Data Documentation

template<typename T>
QString qt_gui_cpp::RosPluginlibPluginProvider< T >::base_class_type_
private

Definition at line 392 of file ros_pluginlib_plugin_provider.h.

template<typename T>
pluginlib::ClassLoader<T>* qt_gui_cpp::RosPluginlibPluginProvider< T >::class_loader_
private

Definition at line 396 of file ros_pluginlib_plugin_provider.h.

template<typename T>
QString qt_gui_cpp::RosPluginlibPluginProvider< T >::export_tag_
private

Definition at line 390 of file ros_pluginlib_plugin_provider.h.

template<typename T>
QMap<void*, boost::shared_ptr<T> > qt_gui_cpp::RosPluginlibPluginProvider< T >::instances_
private

Definition at line 398 of file ros_pluginlib_plugin_provider.h.

template<typename T>
QList<boost::shared_ptr<T> > qt_gui_cpp::RosPluginlibPluginProvider< T >::libraries_to_unload_
private

Definition at line 400 of file ros_pluginlib_plugin_provider.h.

template<typename T>
int qt_gui_cpp::RosPluginlibPluginProvider< T >::unload_libraries_event_
private

Definition at line 394 of file ros_pluginlib_plugin_provider.h.


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


qt_gui_cpp
Author(s): Dirk Thomas
autogenerated on Thu Jun 6 2019 19:54:31