14using namespace Kernel;
32 "In/out workspace containing the logs. The workspace is "
42 auto &run = logWS->mutableRun();
43 if (run.hasProperty(logName)) {
44 run.removeLogData(logName);
46 g_log.
warning() <<
"Unable to delete log '" << logName <<
"' from the given workspace as it does not exist.\n";
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
A property class for workspaces.
void exec() override
Execute the algorithm.
const std::string category() const override
function to return a category of the algorithm.
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
void init() override
Initialize the algorithm's properties.
void warning(const std::string &msg)
Logs at warning level.
Validator to check that a property is not left empty.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
@ InOut
Both an input & output workspace.
@ Input
An input workspace.