16using namespace Kernel;
24 std::unordered_set<std::string> groupWorkspaceList;
26 for (
const auto &
name : workspaceList) {
31 groupWorkspaceList.insert(
name);
36 declareProperty(
"InputWorkspace",
"",
"Name of the input workspace to ungroup",
37 std::make_shared<StringListValidator>(groupWorkspaceList));
44 const std::string inputws =
getProperty(
"InputWorkspace");
54 throw std::runtime_error(
"Selected Workspace is not a WorkspaceGroup");
59 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.
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 void 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.
const std::string name() const override
Algorithm's name for identification overriding a virtual 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.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
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