Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rviz::PluginlibFactory< Type > Class Template Reference

#include <pluginlib_factory.h>

Inheritance diagram for rviz::PluginlibFactory< Type >:
Inheritance graph
[legend]

Classes

struct  BuiltInClassRecord
 

Public Member Functions

virtual void addBuiltInClass (const QString &package, const QString &name, const QString &description, Type *(*factory_function)())
 
virtual QString getClassDescription (const QString &class_id) const
 
virtual QString getClassName (const QString &class_id) const
 
virtual QString getClassPackage (const QString &class_id) const
 
virtual QStringList getDeclaredClassIds ()
 
virtual QIcon getIcon (const QString &class_id) const
 
virtual QString getPluginManifestPath (const QString &class_id) const
 
 PluginlibFactory (const QString &package, const QString &base_class_type)
 
virtual ~PluginlibFactory ()
 
- Public Member Functions inherited from rviz::ClassIdRecordingFactory< Type >
virtual Type * make (const QString &class_id, QString *error_return=NULL)
 Instantiate and return a instance of a subclass of Type using makeRaw(). More...
 
- Public Member Functions inherited from rviz::Factory
virtual ~Factory ()
 

Protected Member Functions

virtual Type * makeRaw (const QString &class_id, QString *error_return=NULL)
 Instantiate and return a instance of a subclass of Type using our pluginlib::ClassLoader. More...
 

Private Attributes

QHash< QString, BuiltInClassRecordbuilt_ins_
 
pluginlib::ClassLoader< Type > * class_loader_
 

Detailed Description

template<class Type>
class rviz::PluginlibFactory< Type >

Definition at line 50 of file pluginlib_factory.h.

Constructor & Destructor Documentation

template<class Type>
rviz::PluginlibFactory< Type >::PluginlibFactory ( const QString &  package,
const QString &  base_class_type 
)
inline

Definition at line 63 of file pluginlib_factory.h.

template<class Type>
virtual rviz::PluginlibFactory< Type >::~PluginlibFactory ( )
inlinevirtual

Definition at line 67 of file pluginlib_factory.h.

Member Function Documentation

template<class Type>
virtual void rviz::PluginlibFactory< Type >::addBuiltInClass ( const QString &  package,
const QString &  name,
const QString &  description,
Type *(*)()  factory_function 
)
inlinevirtual

Definition at line 144 of file pluginlib_factory.h.

template<class Type>
virtual QString rviz::PluginlibFactory< Type >::getClassDescription ( const QString &  class_id) const
inlinevirtual

Implements rviz::Factory.

Definition at line 88 of file pluginlib_factory.h.

template<class Type>
virtual QString rviz::PluginlibFactory< Type >::getClassName ( const QString &  class_id) const
inlinevirtual

Implements rviz::Factory.

Definition at line 98 of file pluginlib_factory.h.

template<class Type>
virtual QString rviz::PluginlibFactory< Type >::getClassPackage ( const QString &  class_id) const
inlinevirtual

Implements rviz::Factory.

Definition at line 108 of file pluginlib_factory.h.

template<class Type>
virtual QStringList rviz::PluginlibFactory< Type >::getDeclaredClassIds ( )
inlinevirtual

Implements rviz::Factory.

Definition at line 72 of file pluginlib_factory.h.

template<class Type>
virtual QIcon rviz::PluginlibFactory< Type >::getIcon ( const QString &  class_id) const
inlinevirtual

Implements rviz::Factory.

Definition at line 128 of file pluginlib_factory.h.

template<class Type>
virtual QString rviz::PluginlibFactory< Type >::getPluginManifestPath ( const QString &  class_id) const
inlinevirtual

Definition at line 118 of file pluginlib_factory.h.

template<class Type>
virtual Type* rviz::PluginlibFactory< Type >::makeRaw ( const QString &  class_id,
QString *  error_return = NULL 
)
inlineprotectedvirtual

Instantiate and return a instance of a subclass of Type using our pluginlib::ClassLoader.

Parameters
class_idA string identifying the class uniquely among classes of its parent class. rviz::GridDisplay might be rviz/Grid, for example.
error_returnIf non-NULL and there is an error, *error_return is set to a description of the problem.
Returns
A new instance of the class identified by class_id, or NULL if there was an error.

If makeRaw() returns NULL and error_return is not NULL, *error_return will be set. On success, *error_return will not be changed.

Implements rviz::ClassIdRecordingFactory< Type >.

Reimplemented in rviz::DisplayFactory, and rviz::MockDisplayFactory.

Definition at line 168 of file pluginlib_factory.h.

Member Data Documentation

template<class Type>
QHash<QString, BuiltInClassRecord> rviz::PluginlibFactory< Type >::built_ins_
private

Definition at line 198 of file pluginlib_factory.h.

template<class Type>
pluginlib::ClassLoader<Type>* rviz::PluginlibFactory< Type >::class_loader_
private

Definition at line 197 of file pluginlib_factory.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat Apr 27 2019 02:33:43