From ff18ec0fba305d041aa5abdccb943fccfaa8e4f5 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 28 Aug 2018 11:58:39 +0200 Subject: Fix missing findPlugin function in Windows --- src/AstraObjectFactory.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/AstraObjectFactory.cpp') 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 . #include "astra/AstraObjectFactory.h" -using namespace std; - namespace astra { DEFINE_SINGLETON2(CAstraObjectFactory) DEFINE_SINGLETON2(CAstraObjectFactory) DEFINE_SINGLETON2(CAstraObjectFactory) +template <> +CAlgorithm* CAstraObjectFactory::findPlugin(std::string _sType) +{ + CPluginAlgorithmFactory *fac = CPluginAlgorithmFactory::getFactory(); + if (fac) + return fac->getPlugin(_sType); + else + return 0; +} + } // end namespace -- cgit v1.2.3