Public Member Functions | Protected Member Functions | List of all members
rviz::ClassIdRecordingFactory< Type > Class Template Referenceabstract

Templated factory which informs objects created by it what their class identifier string was. calls a setClassId() function on any instances created by a protected makeRaw() function (pure virtual in this class). More...

#include <class_id_recording_factory.h>

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

Public Member Functions

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 QString getClassDescription (const QString &class_id) const =0
 
virtual QString getClassName (const QString &class_id) const =0
 
virtual QString getClassPackage (const QString &class_id) const =0
 
virtual QStringList getDeclaredClassIds ()=0
 
virtual QIcon getIcon (const QString &class_id) const =0
 
virtual ~Factory ()
 

Protected Member Functions

virtual Type * makeRaw (const QString &class_id, QString *error_return=NULL)=0
 

Detailed Description

template<class Type>
class rviz::ClassIdRecordingFactory< Type >

Templated factory which informs objects created by it what their class identifier string was. calls a setClassId() function on any instances created by a protected makeRaw() function (pure virtual in this class).

Definition at line 42 of file class_id_recording_factory.h.

Member Function Documentation

template<class Type>
virtual Type* rviz::ClassIdRecordingFactory< Type >::make ( const QString &  class_id,
QString *  error_return = NULL 
)
inlinevirtual

Instantiate and return a instance of a subclass of Type using makeRaw().

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 make() returns NULL and error_return is not NULL, *error_return will be set. On success, *error_return will not be changed.

Definition at line 55 of file class_id_recording_factory.h.

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

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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Wed Aug 28 2019 04:01:52