29 #ifndef CLASS_ID_RECORDING_FACTORY_H 30 #define CLASS_ID_RECORDING_FACTORY_H 55 virtual Type*
make(
const QString& class_id, QString* error_return =
nullptr)
57 Type* obj =
makeRaw(class_id, error_return);
60 obj->setClassId(class_id);
67 virtual Type*
makeRaw(
const QString& class_id, QString* error_return =
nullptr) = 0;
72 #endif // CLASS_ID_RECORDING_FACTORY_H virtual Type * makeRaw(const QString &class_id, QString *error_return=nullptr)=0
Templated factory which informs objects created by it what their class identifier string was...
virtual QString getClassDescription(const QString &class_id) const =0
Abstract superclass representing the ability to get a list of class IDs and the ability to get name...
virtual Type * make(const QString &class_id, QString *error_return=nullptr)
Instantiate and return a instance of a subclass of Type using makeRaw().