13using namespace Kernel;
22 "Name of the workspace to delete.");
30 const std::string wsName =
getProperty(
"Workspace");
41 const std::string wsName =
getProperty(
"Workspace");
43 auto wsPtr = dataStore.
retrieve(wsName);
#define DECLARE_ALGORITHM(classname)
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
virtual bool checkGroups()
Check the input workspace properties for groups.
The Analysis data service stores instances of the Workspace objects and anything that derives from te...
virtual void remove(const std::string &name)
Overridden remove member to delete its name held by the workspace itself.
std::shared_ptr< WSTYPE > retrieveWS(const std::string &name) const
Retrieve a workspace and cast it to the given WSTYPE.
Class to hold a set of workspaces.
bool isEmpty() const
This method returns true if the group is empty (no member workspace)
A property class for workspaces.
A simple algorithm to remove a workspace from the ADS.
bool checkGroups() override
We want most of the functionality from checkGroups, but will handle empty groups separately as we sti...
void exec() override
Overridden exec.
bool doesExist(const std::string &name) const
Check to see if a data object exists in the store.
std::shared_ptr< T > retrieve(const std::string &name) const
Get a shared pointer to a stored data object.
Manage the lifetime of a class intended to be a singleton.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
@ Input
An input workspace.