Mantid
Loading...
Searching...
No Matches
RenameWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
27class MANTID_ALGORITHMS_DLL RenameWorkspace : public API::DistributedAlgorithm {
28public:
30 const std::string name() const override { return "RenameWorkspace"; }
32 const std::string summary() const override { return "Rename the Workspace."; }
33
35 int version() const override { return (1); }
36 const std::vector<std::string> seeAlso() const override { return {"RenameWorkspaces"}; }
38 const std::string category() const override { return "Utility\\Workspaces"; }
40 std::map<std::string, std::string> validateInputs() override;
41
42private:
43 const std::string workspaceMethodName() const override { return "rename"; }
44 const std::string workspaceMethodInputProperty() const override { return "InputWorkspace"; }
45
46 // Overridden Algorithm methods
47 void init() override;
48 void exec() override;
49
50 bool processGroups() override;
51};
52
53} // namespace Algorithms
54} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Renames a workspace to a different name in the data service.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
const std::string workspaceMethodName() const override
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string workspaceMethodInputProperty() const override
Returns the name of the input workspace property used by the calling object.
Helper class which provides the Collimation Length for SANS instruments.