Mantid
Loading...
Searching...
No Matches
SavePDFGui.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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 "MantidDataHandling/DllConfig.h"
11
12namespace Mantid {
13namespace DataHandling {
14
24class MANTID_DATAHANDLING_DLL SavePDFGui final : public API::Algorithm {
25public:
26 const std::string name() const override;
27 int version() const override;
28 const std::vector<std::string> seeAlso() const override { return {"SaveAscii"}; }
29 const std::string category() const override;
30 const std::string summary() const override;
31 std::map<std::string, std::string> validateInputs() override;
32
33private:
34 void init() override;
35 void exec() override;
36 void writeMetaData(std::ofstream &out, const API::MatrixWorkspace_const_sptr &inputWS);
37 void writeWSData(std::ofstream &out, const API::MatrixWorkspace_const_sptr &inputWS);
38};
39
40} // namespace DataHandling
41} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
SavePDFGui : Saves a workspace containing a pair distrebution function in a format readable by the PD...
Definition: SavePDFGui.h:24
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: SavePDFGui.h:28
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.