15using namespace Kernel;
23 std::unordered_set<std::string> groupWorkspaceList;
25 for (
const auto &wsName : workspaceList) {
30 groupWorkspaceList.insert(wsName);
35 declareProperty(
"InputWorkspace",
"",
"Name of the input workspace to ungroup",
36 std::make_shared<StringListValidator>(groupWorkspaceList));
43 const std::string inputws =
getProperty(
"InputWorkspace");
53 throw std::runtime_error(
"Selected Workspace is not a WorkspaceGroup");
60 data_store.
remove(inputws);
#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.
virtual void fillHistory()
Copy workspace history from input workspaces to output workspaces and record the history for ths algo...
UnGroupingWorkspace notification is sent from UnGroupWorkspace algorithm before the WorkspaceGroup is...
The Analysis data service stores instances of the Workspace objects and anything that derives from te...
virtual Workspace_sptr remove(const std::string &name)
Overridden remove member to delete its name held by the workspace itself.
void exec() override
overridden execute method
void init() override
Overridden Init method.
std::vector< std::string > getObjectNames(DataServiceSort sortState=DataServiceSort::Unsorted, DataServiceHidden hiddenState=DataServiceHidden::Auto, const std::string &contain="") const
Returns a vector of strings containing all object names in the ADS.
std::shared_ptr< T > retrieve(const std::string &name) const
Get a shared pointer to a stored data object.
Poco::NotificationCenter notificationCenter
Sends notifications to observers.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< const WorkspaceGroup > WorkspaceGroup_const_sptr
shared pointer to Mantid::API::WorkspaceGroup, pointer to const version