Mantid
Loading...
Searching...
No Matches
SaveAscii.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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
13#include "MantidDataHandling/DllConfig.h"
14
15namespace Mantid {
16namespace DataHandling {
25class MANTID_DATAHANDLING_DLL SaveAscii final : public API::Algorithm {
26public:
28 SaveAscii();
30 const std::string name() const override { return "SaveAscii"; }
32 const std::string summary() const override { return "Saves a 2D workspace to a ascii file."; }
33
35 int version() const override { return 1; }
37 const std::string category() const override { return "DataHandling\\Text"; }
38
39private:
41 void init() override;
43 void exec() override;
44
46 std::map<std::string, std::string> m_separatorIndex;
47};
48
49} // namespace DataHandling
50} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Saves a workspace or selected spectra in a coma-separated ascii file.
Definition: SaveAscii.h:25
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: SaveAscii.h:37
std::map< std::string, std::string > m_separatorIndex
Map the separator options to their string equivalents.
Definition: SaveAscii.h:46
const std::string summary() const override
Summary of algorithms purpose.
Definition: SaveAscii.h:32
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: SaveAscii.h:30
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: SaveAscii.h:35
Helper class which provides the Collimation Length for SANS instruments.