Mantid
Loading...
Searching...
No Matches
CreateWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 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 {
37class MANTID_ALGORITHMS_DLL CreateWorkspace final : public API::Algorithm {
38public:
39 const std::string name() const override { return "CreateWorkspace"; }
41 const std::string summary() const override {
42 return "This algorithm constructs a MatrixWorkspace when passed a vector "
43 "for each of the X, Y, and E data values.";
44 }
45
46 const std::string category() const override { return "Utility\\Workspaces"; }
47 int version() const override { return (1); }
48
49 const std::vector<std::string> seeAlso() const override {
50 return {"CreateSingleValuedWorkspace", "CreateSampleWorkspace"};
51 }
52 std::map<std::string, std::string> validateInputs() override;
53
54private:
56 void init() override;
58 void exec() override;
59};
60
61} // namespace Algorithms
62} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
CreateWorkspace Algorithm.
const std::string name() const override
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Helper class which provides the Collimation Length for SANS instruments.