/
ISISJournalGetExperimentRuns.h
47 lines (41 loc) · 1.63 KB
/
ISISJournalGetExperimentRuns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/ITableWorkspace_fwd.h"
#include "MantidDataHandling/DllConfig.h"
namespace Mantid {
namespace API {
class IJournal;
}
namespace DataHandling {
/**
ISISJournalGetExperimentRuns obtains a list of runs and related information for
an investigation and cycle.
*/
class DLLExport ISISJournalGetExperimentRuns : public API::Algorithm {
public:
ISISJournalGetExperimentRuns() : API::Algorithm() {}
~ISISJournalGetExperimentRuns() override = default;
const std::string name() const override { return "ISISJournalGetExperimentRuns"; }
const std::string summary() const override {
return "Obtains information of the runs associated with a specific "
"investigation.";
}
int version() const override { return 1; }
const std::vector<std::string> seeAlso() const override { return {"CatalogGetDataFiles"}; }
const std::string category() const override { return "DataHandling"; }
protected:
/// Construct a journal; can be overridden by tests to return a mock.
virtual std::unique_ptr<API::IJournal> makeJournal(std::string const &instrument,
std::string const &cycle = std::string());
private:
void init() override;
void exec() override;
};
} // namespace DataHandling
} // namespace Mantid