10#include <boost/python/class.hpp>
32class DeprecatedAlgorithmChecker {
39 DeprecatedAlgorithmChecker(
const std::string &algName,
int version)
45 const std::string isDeprecated()
const {
46 std::string deprecMessage;
48 auto *deprecatedAliasAlg =
dynamic_cast<DeprecatedAlias *
>(m_alg.get());
51 deprecMessage = depr->deprecationMsg(m_alg.get());
52 else if (deprecatedAliasAlg)
60 DeprecatedAlgorithmChecker() =
delete;
67 class_<DeprecatedAlgorithmChecker>(
"DeprecatedAlgorithmChecker", no_init)
68 .def(init<const std::string &, int>((arg(
"algName"), arg(
"version")),
69 "Constructs a DeprecatedAlgorithmChecker for the given algorithm & "
70 "version. (-1 indicates latest version)"))
71 .def(
"isDeprecated", &DeprecatedAlgorithmChecker::isDeprecated,
72 "A string containing a deprecation message if the algorithm is "
73 "deprecated, empty string otherwise");
void export_DeprecatedAlgorithmChecker()
Class for marking algorithms as deprecated.
DeprecatedAlias : Class for making algorithm with deprecated names (aliases).
std::string deprecationMessage(const IAlgorithm *)
Construct and return a full deprecation message.
Manage the lifetime of a class intended to be a singleton.
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Mantid::Kernel::SingletonHolder< AlgorithmManagerImpl > AlgorithmManager