#include <pluginlib_factory.h>
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 () |
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. | |
Private Attributes | |
QHash< QString, BuiltInClassRecord > | built_ins_ |
pluginlib::ClassLoader< Type > * | class_loader_ |
Definition at line 48 of file pluginlib_factory.h.
rviz::PluginlibFactory< Type >::PluginlibFactory | ( | const QString & | package, |
const QString & | base_class_type | ||
) | [inline] |
Definition at line 61 of file pluginlib_factory.h.
virtual rviz::PluginlibFactory< Type >::~PluginlibFactory | ( | ) | [inline, virtual] |
Definition at line 65 of file pluginlib_factory.h.
virtual void rviz::PluginlibFactory< Type >::addBuiltInClass | ( | const QString & | package, |
const QString & | name, | ||
const QString & | description, | ||
Type *(*)() | factory_function | ||
) | [inline, virtual] |
Definition at line 142 of file pluginlib_factory.h.
virtual QString rviz::PluginlibFactory< Type >::getClassDescription | ( | const QString & | class_id | ) | const [inline, virtual] |
Implements rviz::Factory.
Definition at line 86 of file pluginlib_factory.h.
virtual QString rviz::PluginlibFactory< Type >::getClassName | ( | const QString & | class_id | ) | const [inline, virtual] |
Implements rviz::Factory.
Definition at line 96 of file pluginlib_factory.h.
virtual QString rviz::PluginlibFactory< Type >::getClassPackage | ( | const QString & | class_id | ) | const [inline, virtual] |
Implements rviz::Factory.
Definition at line 106 of file pluginlib_factory.h.
virtual QStringList rviz::PluginlibFactory< Type >::getDeclaredClassIds | ( | ) | [inline, virtual] |
Implements rviz::Factory.
Definition at line 70 of file pluginlib_factory.h.
virtual QIcon rviz::PluginlibFactory< Type >::getIcon | ( | const QString & | class_id | ) | const [inline, virtual] |
Implements rviz::Factory.
Definition at line 126 of file pluginlib_factory.h.
virtual QString rviz::PluginlibFactory< Type >::getPluginManifestPath | ( | const QString & | class_id | ) | const [inline, virtual] |
Definition at line 116 of file pluginlib_factory.h.
virtual Type* rviz::PluginlibFactory< Type >::makeRaw | ( | const QString & | class_id, |
QString * | error_return = NULL |
||
) | [inline, protected, virtual] |
Instantiate and return a instance of a subclass of Type using our pluginlib::ClassLoader.
class_id | A string identifying the class uniquely among classes of its parent class. rviz::GridDisplay might be rviz/Grid, for example. |
error_return | If non-NULL and there is an error, *error_return is set to a description of the problem. |
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 166 of file pluginlib_factory.h.
QHash<QString, BuiltInClassRecord> rviz::PluginlibFactory< Type >::built_ins_ [private] |
Definition at line 196 of file pluginlib_factory.h.
pluginlib::ClassLoader<Type>* rviz::PluginlibFactory< Type >::class_loader_ [private] |
Definition at line 195 of file pluginlib_factory.h.