|
@@ -1,8 +0,0 @@
|
|
|
-#include "algorithmfactory.h"
|
|
|
|
|
-#include "algorithmregistry.h"
|
|
|
|
|
-
|
|
|
|
|
-AlgorithmBase* AlgorithmFactory::create(const QString& type) {
|
|
|
|
|
- // Use AlgorithmRegistry to create algorithm instance
|
|
|
|
|
- std::shared_ptr<AlgorithmBase> algorithm = AlgorithmRegistry::instance().create(type.toStdString());
|
|
|
|
|
- return algorithm.get();
|
|
|
|
|
-}
|
|
|