summaryrefslogtreecommitdiffstats
path: root/src/AstraObjectFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AstraObjectFactory.cpp')
-rw-r--r--src/AstraObjectFactory.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/AstraObjectFactory.cpp b/src/AstraObjectFactory.cpp
index 2ce7474..a103bc6 100644
--- a/src/AstraObjectFactory.cpp
+++ b/src/AstraObjectFactory.cpp
@@ -27,12 +27,20 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#include "astra/AstraObjectFactory.h"
-using namespace std;
-
namespace astra {
DEFINE_SINGLETON2(CAstraObjectFactory<CAlgorithm, AlgorithmTypeList>)
DEFINE_SINGLETON2(CAstraObjectFactory<CProjector2D, Projector2DTypeList>)
DEFINE_SINGLETON2(CAstraObjectFactory<CProjector3D, Projector3DTypeList>)
+template <>
+CAlgorithm* CAstraObjectFactory<CAlgorithm, AlgorithmTypeList>::findPlugin(std::string _sType)
+{
+ CPluginAlgorithmFactory *fac = CPluginAlgorithmFactory::getFactory();
+ if (fac)
+ return fac->getPlugin(_sType);
+ else
+ return 0;
+}
+
} // end namespace