10#include "MantidTypes/Core/DateAndTimeHelpers.h"
16Kernel::Logger
g_log(
"DeprecatedAlgorithm");
33 if (!replacement.empty())
48 if (!Types::Core::DateAndTimeHelpers::stringIsISO8601(date)) {
57 std::stringstream msg;
59 msg << algo->
name() <<
" is ";
67 msg <<
" and has no replacement.";
71 std::ostringstream invalidReplacementMsg;
75 invalidReplacementMsg <<
"Replacement algorithm not registered.";
DeprecatedAlgorithm()
Does nothing other than make the compiler happy.
std::string deprecationMsg(const IAlgorithm *)
This merely prints the deprecation error for people to see.
std::string m_deprecatedDate
The date that the algorithm was first deprecated.
std::string m_replacementAlgorithm
The algorithm to use instead of this one.
void deprecatedDate(const std::string &)
The date the algorithm was deprecated on.
void useAlgorithm(const std::string &, const int version=-1)
The algorithm to use instead of this one.
virtual ~DeprecatedAlgorithm()
Does nothing other than make the compiler happy.
int m_replacementVersion
Replacement version, -1 indicates latest.
IAlgorithm is the interface implemented by the Algorithm base class.
virtual const std::string name() const =0
function to return a name of the algorithm, must be overridden in all algorithms
void warning(const std::string &msg)
Logs at warning level.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
Kernel::Logger g_log("ExperimentInfo")
static logger object
bool exists(::NeXus::File &file, const std::string &name)
Based on the current group in the file, does the named sub-entry exist?