Mantid
Loading...
Searching...
No Matches
DownloadFile.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 {
13
14namespace Kernel {
15// forward Declaration
16class InternetHelper;
17} // namespace Kernel
18
19namespace DataHandling {
20
23class MANTID_DATAHANDLING_DLL DownloadFile : public API::Algorithm {
24public:
26 virtual ~DownloadFile() override;
27
28 const std::string name() const override;
29 int version() const override;
30 const std::vector<std::string> seeAlso() const override { return {"Load", "CatalogDownloadDataFiles"}; }
31 const std::string category() const override;
32 const std::string summary() const override;
33
34protected:
36
37private:
38 void init() override;
39 void exec() override;
40};
41
42} // namespace DataHandling
43} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
DownloadFile : Downloads a file from a url to the file system.
Definition: DownloadFile.h:23
Kernel::InternetHelper * m_internetHelper
Definition: DownloadFile.h:35
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: DownloadFile.h:30
InternetHelper : A helper class for supporting access to resources through HTTP and HTTPS.
Helper class which provides the Collimation Length for SANS instruments.