Mantid
Loading...
Searching...
No Matches
RecordPythonScript.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11#include "MantidAlgorithms/DllConfig.h"
13
14namespace Mantid {
15namespace Algorithms {
16
28class MANTID_ALGORITHMS_DLL RecordPythonScript : public Algorithms::GeneratePythonScript,
31public:
34 const std::string name() const override { return "RecordPythonScript"; };
36 const std::string summary() const override {
37 return "An Algorithm to generate a Python script file to reproduce the "
38 "history of a workspace.";
39 }
40
42 int version() const override { return 1; };
43 const std::vector<std::string> seeAlso() const override {
44 return {"GenerateIPythonNotebook", "GeneratePythonScript"};
45 }
47 const std::string category() const override { return "Utility\\Python"; }
48
49private:
51 void init() override;
53 void exec() override;
54 const std::string alias() const override;
59 void startingHandle(API::IAlgorithm_sptr alg) override;
61 std::string m_generatedScript;
62};
63
64} // namespace Algorithms
65} // namespace Mantid
Observes Algorithm notifications: start,progress,finish,error.
Class for marking algorithms as deprecated.
GeneratePythonScript : TODO: DESCRIPTION.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
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.
std::string m_generatedScript
buffer for the script
int version() const override
Algorithm's version for identification.
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Helper class which provides the Collimation Length for SANS instruments.