Mantid
Loading...
Searching...
No Matches
CloneWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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 {
28class MANTID_ALGORITHMS_DLL CloneWorkspace : public API::DistributedAlgorithm {
29public:
31 const std::string name() const override { return "CloneWorkspace"; }
33 const std::string summary() const override { return "Copies an existing workspace into a new one."; }
34
36 int version() const override { return (1); }
37 const std::vector<std::string> seeAlso() const override { return {"CompareWorkspaces"}; }
39 const std::string category() const override { return "Utility\\Workspaces"; }
40
41private:
42 const std::string workspaceMethodName() const override { return "clone"; }
43 const std::string workspaceMethodInputProperty() const override { return "InputWorkspace"; }
44
46 void init() override;
48 void exec() override;
49};
50
51} // namespace Algorithms
52} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Creates a copy of the input workspace.
const std::string name() const override
Algorithm's name.
const std::string workspaceMethodInputProperty() const override
Returns the name of the input workspace property used by the calling object.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version.
const std::string workspaceMethodName() const override
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.