13#include "MantidICat/DllConfig.h"
40 const std::string
name()
const override {
return "CatalogDownloadDataFiles"; }
42 const std::string
summary()
const override {
43 return "Downloads datafiles from the archives based on the ID of a "
47 int version()
const override {
return 1; }
48 const std::vector<std::string>
seeAlso()
const override {
49 return {
"DownloadFile",
"CatalogGetDataFiles",
"CatalogLogin"};
52 const std::string
category()
const override {
return "DataHandling\\Catalog"; }
63 std::string testDownload(
const std::string &URL,
const std::string &fileName);
71 bool isDataFile(
const std::string &fileName);
73 std::string saveFiletoDisk(std::istream &rs,
const std::string &fileName);
75 std::string doDownloadandSavetoLocalDrive(
const std::string &URL,
const std::string &fileName);
Base class from which all concrete algorithm classes should be derived.
CatalogDownloadDataFiles is responsible for downloading datafiles from a catalog.
CatalogDownloadDataFiles()
Constructor.
double m_prog
progress indicator
~CatalogDownloadDataFiles() override=default
Destructor.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.